Correction sur les boutons MOA et MOE
[OpenERP/cmmi.git] / phase.py
index 035c8c2..7647037 100644 (file)
--- a/phase.py
+++ b/phase.py
@@ -5,8 +5,8 @@
 from openerp.osv import osv, fields
 
 
-class Type_Phase(osv.Model):
-    _name = "projet.type_phase"
+class TypePhase(osv.Model):
+    _name = "cmmi.phase.type"
 
     _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
 
@@ -18,7 +18,7 @@ class Type_Phase(osv.Model):
 
 
 class Phase(osv.Model):
-    _name = "projet.phase"
+    _name = "cmmi.phase"
 
     _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
 
@@ -26,17 +26,17 @@ class Phase(osv.Model):
         "name": fields.char(string="Title", size=64, required=True),
         "description": fields.text(string="Description"),
         "statut": fields.selection(_statuts, string="Statut"),
-        "type_phase_id": fields.many2one("projet.type_phase",
+        "type_phase_id": fields.many2one("cmmi.phase.type",
                                          string="Type phase"),
-        "projet_id": fields.many2one("projet.projet",
+        "projet_id": fields.many2one("cmmi.projet",
                                      string="Projet",
                                      required=True),
-        "charges": fields.one2many("projet.charge",
+        "charges": fields.one2many("cmmi.evolution.charge",
                                    "phase_id",
                                    string="Charges"),
-        "evolutions": fields.one2many("projet.evolution",
+        "evolutions": fields.one2many("cmmi.evolution",
                                       "phase_id",
                                       string="Evolutions"),
-        "palier_id": fields.many2one("projet.palier",
+        "palier_id": fields.many2one("cmmi.axes.palier",
                                      string="Palier"),
     }