Ajout de la vue formulaire pour les évolutions
[OpenERP/cmmi.git] / views / projet.xml
index b0673eb..0de0ff9 100644 (file)
@@ -4,13 +4,12 @@
         <!--         VIEWS PROJET         -->
         <record model="ir.ui.view" id="projet_form_view">
             <field name="name">projet.form</field>
-            <field name="model">projet.projet</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">
@@ -47,7 +46,9 @@
                                 <field name="team_members" nolabel="1">
                                     <tree>
                                         <field name="name"/>
-                                        <field name="title"/>
+                                        <field name="affectation" />
+                                        <field name="depuis" />
+                                        <field name="jusqua" />
                                     </tree>
                                 </field>
                             </page>
@@ -55,7 +56,7 @@
                                 <field name="domaines">
                                     <tree>
                                         <field name="name" />
-                                        <field name="description" />
+                                        <field name="main" />
                                     </tree>
                                 </field>
                             </page>
                             <page string="Evolutions">
                                 <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>
+
+
+        <!--         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" />
         </record>
 
 
-        <!--         VIEWS STRUCTURES         -->
+        <!--         VIEWS EVOLUTIONS         -->
 
+        <record model="ir.ui.view" id="evolution_form_view">
+            <field name="name">evolution.form</field>
+            <field name="model">cmmi.evolution</field>
+            <field name="arch" type="xml">
+                <form string="Formulaire évolution" version="7.0">
+                    <header />
 
+                    <sheet>
+                        <group colspan="4" col="3">
+                            <field name="name" colspan="3"/>
+                            <field name="pid" colspan="3"/>
+                            <field name="priorite" colspan="3"/>
+                            <field name="statut" colspan="3"/>
+                        </group>
+                        <notebook colspan="4">
+                            <page string="Détails">
+                                <group colspan="4" col="1">
+                                    <field name="description" />
+                                    <field name="objectif" />
+                                    <field name="commentaire" />
+                                </group>
+                            </page>
+                            <page string="Charges">
+                                <field name="charges">
+                                    <field name="name" />
+                                </field>
+                            </page>
+                        </notebook>
+                    </sheet>
+                </form>
+            </field>
+        </record>
 
 
         <!--         ACTIONS         -->
 
         <record model="ir.actions.act_window" id="projets_list_action">
             <field name="name">Liste des projets</field>
-            <field name="res_model">projet.projet</field>
+            <field name="res_model">cmmi.projet</field>
             <field name="view_mode">tree,form</field>
         </record>
 
         <record model="ir.actions.act_window" id="domaines_list_action">
             <field name="name">Liste des domaines</field>
-            <field name="res_model">projet.domaine</field>
+            <field name="res_model">cmmi.description.domaine</field>
             <field name="view_mode">tree,form</field>
         </record>
 
         <record model="ir.actions.act_window" id="structures_list_action">
             <field name="name">Liste des structures</field>
-            <field name="res_model">projet.structure</field>
+            <field name="res_model">cmmi.mo.structure</field>
             <field name="view_mode">tree,form</field>
         </record>
 
         <record model="ir.actions.act_window" id="phases_list_action">
             <field name="name">Liste des phases</field>
-            <field name="res_model">projet.phase</field>
+            <field name="res_model">cmmi.phase</field>
             <field name="view_mode">tree,form</field>
         </record>