[IMP] Hide progressbar field in the form view if the state is cancel

bzr revid: hip@tinyerp.com-20121029095229-ib4p268px6rx8f0o
This commit is contained in:
Hiral Patel (OpenERP) 2012-10-29 15:22:29 +05:30
parent a47b6b8c0a
commit ae922702f6
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@
states="draft,open,pending" groups="base.group_user"/>
<button name="do_cancel" string="Cancel Task" type="object"
states="draft,open,pending" groups="base.group_user"/>
<field name="stage_id" widget="statusbar" clickable="True"/>
<field name="stage_id" widget="statusbar" clickable="True" attrs="{'invisible':[('state','in',['cancelled'])]}"/>
</header>
<sheet string="Task">
<label for="name" class="oe_edit_only"/>