Ajout de la vue formulaire pour les phases
authorAlicia FLOREZ <alicflorez@gmail.com>
Fri, 3 May 2013 14:42:44 +0000 (16:42 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Fri, 3 May 2013 14:42:44 +0000 (16:42 +0200)
views/projet.xml

index 585df54..d9cdac0 100644 (file)
@@ -6,11 +6,10 @@
             <field name="name">projet.form</field>
             <field name="model">cmmi.projet</field>
             <field name="arch" type="xml">
-                <form string="Todolist Form" version="7.0">
+                <form string="Formulaire Projet" version="7.0">
                     <header />
 
                     <sheet>
-                        <label for="name" colspan="1" />
                         <field name="name" nolabel="1" />
                         <notebook colspan="4">
                             <page string="Projet">
                             <page string="Evolutions">
                                 <field name="evolutions">
                                     <tree>
-                                        <field name="name" />
+                                        <field name="name"/>
                                         <field name="priorite" />
                                         <field name="palier_id" />
                                         <field name="chantier_id" />
         </record>
 
 
-        <!--         VIEWS STRUCTURES         -->
+        <!--         VIEWS PHASE         -->
+
+        <record model="ir.ui.view" id="phase_form_view">
+            <field name="name">phase.form</field>
+            <field name="model">cmmi.phase</field>
+            <field name="arch" type="xml">
+                <form string="Formulaire phase" version="7.0">
+                    <header />
 
+                    <sheet>
+                        <field name="name" />
+                        <notebook colspan="4">
 
+                            <page string="Détails">
+                                <group colspan="4" col="1">
+                                    <field name="description" />
+                                    <field name="statut" colspan="2" />
+                                    <field name="type_phase_id" colspan="2" />
+                                    <field name="projet_id" colspan="2" />
+                                    <field name="palier_id" colspan="2" />
+                                </group>
+                            </page>
+                            <page string="Évolutions">
+                                <field name="evolutions">
+                                    <tree>
+                                        <field name="name" />
+                                        <field name="priorite" />
+                                        <field name="palier_id" />
+                                        <field name="chantier_id" />
+                                        <field name="statut" />
+                                    </tree>
+                                </field>
+                            </page>
+                        </notebook>
+                    </sheet>
+                </form>
+            </field>
+        </record>
 
 
         <!--         ACTIONS         -->