Ajout relation evolution/phase
authorAlicia FLOREZ <alicflorez@gmail.com>
Fri, 12 Apr 2013 08:45:53 +0000 (10:45 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Fri, 12 Apr 2013 08:45:53 +0000 (10:45 +0200)
projet.py

index 5180697..544e1a0 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -54,6 +54,8 @@ class Evolution(osv.Model):
                                     string="Chantier"),
         "palier_id": fields.many2one("projet.palier",
                                      string="Palier"),
+        "phase_id": fields.many2one("projet.phase",
+                                    string="Phase"),
     }
 
 
@@ -127,6 +129,9 @@ class Phase(osv.Model):
         "charges": fields.one2many("projet.charge",
                                    "phase_id",
                                    string="Charges"),
+        "evolutions": fields.one2many("projet.evolution",
+                                      "phase_id",
+                                      string="Evolutions"),
     }
 
 #TODO trouver un nom a cette chose