Rajout de la classe projet.type_phase
authorAlicia FLOREZ <alicflorez@gmail.com>
Fri, 19 Apr 2013 09:57:42 +0000 (11:57 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Fri, 19 Apr 2013 09:57:42 +0000 (11:57 +0200)
projet.py

index f1c68d2..d4b951f 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -75,7 +75,7 @@ class Evolution(osv.Model):
         "phase_id": fields.many2one("projet.phase",
                                     string="Phase"),
         "projet_id": fields.many2one("projet.projet",
-                                     string="Projet")
+                                     string="Projet"),
     }
 
 
@@ -147,6 +147,18 @@ class Teammember(osv.Model):
     }
 
 
+class Type_Phase(osv.Model):
+    _name = "projet.type_phase"
+
+    _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
+
+    _columns = {
+        "name": fields.char(string="Title", size=64, required=True),
+        "description": fields.text(string="Description"),
+        "statut": fields.selection(_statuts, string="Statut"),
+    }
+
+
 class Phase(osv.Model):
     _name = "projet.phase"