Fin de la refonte selon le nouveau schema
[OpenERP/cmmi.git] / axes.py
diff --git a/axes.py b/axes.py
index 9646baf..4580fa0 100644 (file)
--- a/axes.py
+++ b/axes.py
@@ -154,7 +154,7 @@ class Palier(osv.Model):
     }
 
 
-class Phase(osv.Model):
+class PalierPhase(osv.Model):
     _name = "cmmi.axes.palier.phase"
 
     _description = "Step's phase / Phase d'un palier"
@@ -174,7 +174,7 @@ class Phase(osv.Model):
                                 store=True,
                                 string="Nom de la phase"),
         "phase_id": fields.many2one("cmmi.projet.phase",
-                                    string="Type phase"),
+                                    string="Phase du projet"),
         "palier_id": fields.many2one("cmmi.axes.palier",
                                      string="Palier"),
         # backrefs
@@ -206,6 +206,11 @@ class Chantier(osv.Model):
         "projet_id": fields.many2one("cmmi.projet",
                                      string="Projet",
                                      required=True),
+        "module_ids": fields.many2many("cmmi.description.module",
+                                       "cmmi.axes.chantier.module",
+                                       "chantier_id",
+                                       "module_id",
+                                       "Modules"),
         "evolutions": fields.one2many("cmmi.evolution",
                                       "chantier_id",
                                       string="Evolutions"),