Scissure du des vues
authorAlicia FLOREZ <alicflorez@gmail.com>
Mon, 13 May 2013 09:17:53 +0000 (11:17 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Mon, 13 May 2013 09:17:53 +0000 (11:17 +0200)
__openerp__.py
views/projet.xml

index e9e42d3..eaba384 100644 (file)
@@ -10,6 +10,9 @@
         'views/wizards/domaine.xml',
         # Vues associées aux modèles
         'views/projet.xml',
+        'views/menu.xml',
+        'views/evolution.xml',
+        'views/phase.xml',
         # Menus
         #TODO,
         # Données
index f4ead08..fa7de4d 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <openerp>
     <data>
+
         <!--         VIEWS PROJET         -->
         <record model="ir.ui.view" id="projet_form_view">
             <field name="name">projet.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" />
-                                        <field name="chantier_id" />
-                                        <field name="statut" />
-                                    </tree>
-                                </field>
-                            </page>
-                        </notebook>
-                    </sheet>
-                </form>
-            </field>
-        </record>
-
-
-        <!--         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="demandeur" />
-                                    <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="view_mode">tree,form</field>
         </record>
 
-        <menuitem id="main_projet_menu" name="Projet" />
-        <menuitem id="mt_projet_menu" name="CMMI" parent="main_projet_menu" />
-        <menuitem id="mt_referentiels_menu" name="Référentiels" parent="main_projet_menu" />
-        <menuitem id="mt_projet_projets_list_menu" name="Liste des projets" parent="mt_projet_menu" action="projets_list_action"/>
-        <menuitem id="mt_projet_domaines_list_menu" name="Liste des domaines" parent="mt_referentiels_menu" action="domaines_list_action"/>
-        <menuitem id="mt_projet_structures_list_menu" name="Liste des structures" parent="mt_referentiels_menu" action="structures_list_action"/>
-        <menuitem id="mt_projet_phases_list_menu" name="Liste des phases" parent="mt_referentiels_menu" action="phases_list_action"/>
+
     </data>
 </openerp>