Ajout relation projet/evolution
authorAlicia FLOREZ <alicflorez@gmail.com>
Mon, 15 Apr 2013 07:56:54 +0000 (09:56 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Mon, 15 Apr 2013 07:56:54 +0000 (09:56 +0200)
projet.py

index 1df43b8..bab8672 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -34,6 +34,9 @@ class Projet(osv.Model):
         "phases": fields.one2many("projet.phase",
                                    "projet_id",
                                    string="Phases"),
+        "evolutions":fields.one2many("projet.evolution",
+                                     "projet_id",
+                                     string="Evolutions"),
         "moe_id": fields.many2one("projet.moe", string="MoE", required=True),
         "moa_id": fields.many2one("projet.moa", string="MoA", required=True),
     }
@@ -56,6 +59,8 @@ class Evolution(osv.Model):
                                      string="Palier"),
         "phase_id": fields.many2one("projet.phase",
                                     string="Phase"),
+        "projet_id": fields.many2one("projet.projet",
+                                     string="Projet")
     }