Modification de la relation projet-phase en projet-phase.type
authorAlicia FLOREZ <alicflorez@gmail.com>
Fri, 24 May 2013 15:22:34 +0000 (17:22 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Fri, 24 May 2013 15:22:34 +0000 (17:22 +0200)
projet.py

index 6dc86ed..9381694 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -114,7 +114,7 @@ class Projet(osv.Model):
         project_id = osv.Model.create(self, cr, uid, vals, context=context)
 
         # Récupération des ids de toutes les phases
-        phase_model = self.pool.get("cmmi.phase")
+        phase_model = self.pool.get("cmmi.phase.type")
         phases_ids = phase_model.search(cr, uid, [])
 
         # Création des relations
@@ -327,7 +327,7 @@ class ProjetPhase(osv.Model):
         "projet_id": fields.many2one("cmmi.projet",
                                      string="Projet",
                                      required=True),
-        "phase_id": fields.many2one("cmmi.phase",
+        "phase_id": fields.many2one("cmmi.phase.type",
                                     string="Phase",
                                     required=True),
     }
\ No newline at end of file