From: Alicia FLOREZ Date: Mon, 15 Apr 2013 07:56:54 +0000 (+0200) Subject: Ajout relation projet/evolution X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=de07eebc2c972a55d8230a89c989be05c1d872b9;p=OpenERP%2Fcmmi.git Ajout relation projet/evolution --- diff --git a/projet.py b/projet.py index 1df43b8..bab8672 100644 --- 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") }