[FIX] project_issue: added the stages page in the form view of project having the...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 21 Feb 2013 14:20:19 +0000 (15:20 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 21 Feb 2013 14:20:19 +0000 (15:20 +0100)
bzr revid: qdp-launchpad@openerp.com-20130221142019-bc2ytd50x02xk232

addons/project/project_view.xml
addons/project_issue/project_issue_view.xml

index b102c01..0f2ab37 100644 (file)
                                 </group>
                             </group>
                         </page>
-                        <page string="Tasks Stages" attrs="{'invisible': [('use_tasks', '=', False)]}">
+                        <page string="Project Stages" attrs="{'invisible': [('use_tasks', '=', False)]}" name="project_stages">
                              <field name="type_ids"/>
                         </page>
                     </notebook>
index d6dbd18..2e16e1a 100644 (file)
                 <xpath expr='//div[@name="buttons"]' position='inside'>
                     <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
                 </xpath>
+                <xpath expr='//page[@name="project_stages"]' position="attribute">
+                    <attribute name="attrs">{'invisible': [('use_tasks', '=', False),('use_issues','=',False)]}"</attribute>
+               </xpath>
                 <field name="priority" position="before">
                     <field name="project_escalation_id"/>
                 </field>