Refonte de la notion de phase 2/3
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Thu, 30 May 2013 09:53:34 +0000 (11:53 +0200)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Thu, 30 May 2013 09:53:34 +0000 (11:53 +0200)
projet.py

index 611c422..96e0502 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -310,6 +310,8 @@ class ProjetMoa(osv.Model):
 class ProjetPhase(osv.Model):
     _name = "cmmi.projet.phase"
 
+    _description = "Linking of phases to projects / Rattachement des Phases aux projets"
+
     def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if isinstance(ids, (int, long)):
             ids = [ids]
@@ -321,13 +323,13 @@ class ProjetPhase(osv.Model):
                                 type='char',
                                 store=True,
                                 string="Nom de la phase"),
-        "selectionne": fields.boolean(string="Phase sélectionnée ?"),
+        "phase_id": fields.many2one("cmmi.phase",
+                                    string="Phase",
+                                    required=True),
         "projet_id": fields.many2one("cmmi.projet",
                                      string="Projet",
                                      required=True),
-        "phase_id": fields.many2one("cmmi.phase.type",
-                                    string="Phase",
-                                    required=True),
+        "selectionne": fields.boolean(string="Phase sélectionnée ?"),
     }