Ajout de boutons permettant le contrôle de l'état d'une évolution
[OpenERP/cmmi.git] / views / evolution.xml
index e9c032e..0e5f8c5 100644 (file)
@@ -8,14 +8,20 @@
             <field name="model">cmmi.evolution</field>
             <field name="arch" type="xml">
                 <form string="Formulaire évolution" version="7.0">
-                    <header />
+                    <header>
+                        <button string="Commencer" type="object" name="action_commencer" states="cree" class="oe_highlight" />
+                        <button string="Suspendre" type="object" name="action_suspendre" states="encours" class="oe_highlight" />
+                        <button string="Terminer" type="object" name="action_terminer" states="encours" class="oe_highlight" />
+                        <button string="Abandonner" type="object" name="action_abandonner" states="encours,cree" class="oe_highlight" />
+                        <button string="Reprendre" type="object" name="action_reprendre" states="suspendu" class="oe_highlight" />
+                    </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"/>
+                            <field name="state" colspan="3"/>
                         </group>
                         <notebook colspan="4">
                             <page string="Détails">