[IMP]project : set header teg insted div tag for buttons

bzr revid: cha@tinyerp.com-20120606085840-9tvgx58ed3xpzal8
This commit is contained in:
Ajay Chauhan (OpenERP) 2012-06-06 14:28:40 +05:30
parent e099752382
commit 4ed113a8e1
1 changed files with 21 additions and 13 deletions

View File

@ -301,19 +301,27 @@
<field eval="2" name="priority"/>
<field name="arch" type="xml">
<form string="Project" layout="manual">
<div class="oe_form_topbar">
<button name="action_close" states="pending,open" string="Done" type="object"/>
<button name="do_open" states="pending,draft" string="Start Task" type="object"/>
<button name="%(action_project_task_reevaluate)d" states="done,cancelled" string="Reactivate" type="action" context="{'button_reactivate':True}" />
<button name="do_pending" states="open" string="Pending" type="object"/>
<button name="do_draft" states="open" string="Draft" type="object"/>
<button name="%(action_project_task_delegate)d" states="pending,open,draft" string="Delegate" type="action" groups="project.group_delegate_task"/>
<button name="do_cancel" states="draft,open,pending" string="Cancel" type="object"/>
<div class="oe_right">
<field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}' select="1"/>
</div>
<div class="oe_clear"/>
</div>
<header>
<button name="do_open" string="Start Task" type="object"
states="draft,pending"/>
<button name="%(action_project_task_reevaluate)d" string="Reactivate" type="action"
states="done,cancelled" context="{'button_reactivate':True}"/>
<button name="do_pending" string="Pending" type="object"
states="open"/>
<button name="action_close" string="Done" type="object"
states="draft,open,pending"/>
<button name="do_draft" string="Draft" type="object"
states="cancel,done"/>
<button name="%(action_project_task_delegate)d" string="Delegate" type="action"
states="pending,open,draft" groups="project.group_delegate_task"/>
<button name="do_cancel" string="Cancel" type="object"
states="draft,open,pending" />
<button name="stage_previous" string="Previous Stage" type="object"
states="open,pending" icon="gtk-go-back" attrs="{'invisible': [('stage_id','=', False)]}"/>
<button name="stage_next" string="Next Stage" type="object"
states="open,pending" icon="gtk-go-forward" attrs="{'invisible': [('stage_id','=', False)]}"/>
<field name="stage_id" widget="statusbar"/>
</header>
<sheet string="Task edition" layout="auto">
<group colspan="6" col="6">
<field name="name" select="1"/>