Rajout de champs à la classe projet.domaine
authorAlicia FLOREZ <alicflorez@gmail.com>
Thu, 18 Apr 2013 15:19:35 +0000 (17:19 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Thu, 18 Apr 2013 15:19:35 +0000 (17:19 +0200)
projet.py

index ed13c5e..812c08e 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -95,10 +95,16 @@ class Module(osv.Model):
 class Domaine(osv.Model):
     _name = "projet.domaine"
 
+    _statuts = [("actif", "Actif"),
+               ("inactif", "Inactif")]
+
     _columns = {
         "name": fields.char(string="Title", size=64, required=True),
+        "code": fields.char(string="Code", size=8),
         "description": fields.text(string="Description"),
+        "ordre": fields.integer(string="Ordre"),
         "parent_id": fields.many2one("projet.domaine", string="Parent_id"),
+        "statut": fields.selection(_statuts, string="Statut"),
         "projets": fields.many2many("projet.projet",
                                     "projet_projet_structure_rel",
                                     "domaines",