Ajout d'un domaine et d'une structure principale pour un projet
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 30 Apr 2013 13:31:57 +0000 (15:31 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 30 Apr 2013 13:31:57 +0000 (15:31 +0200)
projet.py
views/projet.xml

index 7a7bed8..12ec84e 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -51,6 +51,10 @@ class Projet(osv.Model):
                                      string="Evolutions"),
         "moe_id": fields.many2one("projet.moe", string="MoE", required=True),
         "moa_id": fields.many2one("projet.moa", string="MoA", required=True),
+        "main_domain": fields.many2one("projet.domaine",
+                                       string="Domaine principal"),
+        "main_structure": fields.many2one("projet.structure",
+                                          string="Structure principale"),
     }
 
 
index c6bd9ab..efdcfc5 100644 (file)
                                 <field name="moe_id" nolabel="1" />
                                 <label for="moa_id" colspan="1" />
                                 <field name="moa_id" nolabel="1" />
+                                <label for="main_domain" colspan="1" />
+                                <field name="main_domain" nolabel="1" />
+                                <label for="main_structure" colspan="1" />
+                                <field name="main_structure" nolabel="1" />
                             </page>
                             <page string="Structures">
                                 <p>MOe</p>