Projet - Ajout de nouveaux champs : 'use_chantier' et 'use_palier'
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 15:49:25 +0000 (17:49 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 15:49:25 +0000 (17:49 +0200)
projet.py
views/projet.xml

index 1c2fc93..8bfce87 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -82,6 +82,9 @@ class Projet(osv.Model):
     _columns = {
         "name": fields.char(string="Title", size=64, required=True),
         "description": fields.text(string="Description"),
+        "use_chantier": fields.boolean(string="Utilisation de la notion de chantier ?"),
+        "use_palier": fields.boolean(string="Utilisation de la notion de palier ?"),
+
         # Backrefs
         "domains": fields.one2many("cmmi.projet.domaine",
                                     "project_id",
index a896669..0cb1a04 100644 (file)
                         <field name="name" nolabel="1" />
                         <notebook colspan="4">
                             <page string="Projet">
-                                <label for="description" />
-                                <field name="description" nolabel="1" />
-                                <label for="moe_id" />
-                                <field name="moe_id" nolabel="1" widget="char" />
-                                <label for="moa_id" />
-                                <field name="moa_id" nolabel="1" widget="char" />
-                                <label for="main_domain" />
-                                <field name="main_domain" nolabel="1" widget="char" />
+                                <group>
+                                    <field name="description" />
+                                    <field name="moe_id" widget="char" />
+                                    <field name="moa_id" widget="char" />
+                                    <field name="main_domain" widget="char" />
+                                    <field name="use_chantier" class="oe_inline"/>
+                                    <field name="use_palier" class="oe_inline"/>
+                                </group>
                             </page>
                             <page string="Modules">
                                 <field name="modules">