Mise en page de champs dans la vue form projet
[OpenERP/cmmi.git] / views / projet.xml
index bd1199a..84aaf50 100644 (file)
                         <field name="name" nolabel="1" />
                         <notebook colspan="4">
                             <page string="Projet">
-                                <field name="description" nolabel="1" /><!--
-                                <label for="moe_id" colspan="1" />
-                                <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" widget="text" />
+                                <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" />
                             </page>
                             <page string="MO">
                                 <p>MOE</p>
-                                <button type="action" target="new" name="cmmi.wizard_add_moe_to_project" string="Add a MOE" class="oe_highlight" context="{'project_id': id}" />
+                                <button type="action" target="new" name="%(wizard_add_moe_to_project)d" string="Add a MOE" class="oe_highlight" context="{'project_id': id}" />
                                 <field name="moe_ids">
                                     <tree create="false" delete="true" editable="true">
                                         <field name="project_id" invisible="1" />
@@ -34,7 +34,7 @@
                                     </tree>
                                 </field>
                                 <p>MOA</p>
-                                <button type="action" target="new" name="cmmi.wizard_add_moa_to_project" string="Add a MOA" class="oe_highlight" context="{'project_id': id}" />
+                                <button type="action" target="new" name="%(wizard_add_moa_to_project)d" string="Add a MOA" class="oe_highlight" context="{'project_id': id}" />
                                 <field name="moa_ids">
                                     <tree create="false" delete="true" editable="true">
                                         <field name="project_id" invisible="1" />
@@ -55,7 +55,7 @@
                                 </field>
                             </page>
                             <page string="Domaines">
-                                <button type="action" target="new" name="cmmi.wizard_add_domain_to_project" string="Add a domain" class="oe_highlight" context="{'project_id': id}" />
+                                <button type="action" target="new" name="%(wizard_add_domain_to_project)d" string="Add a domain" class="oe_highlight" context="{'project_id': id}" />
                                 <field name="domains">
                                     <tree create="false" delete="true" editable="true">
                                         <field name="project_id" invisible="1" />