[IMP]project_issue: put a attrs on stage field when stage is not there

bzr revid: mma@tinyerp.com-20120502125048-07p7ynwtokeqvcxt
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-05-02 18:20:48 +05:30
parent bae6dcbe57
commit 77847c7ac5
2 changed files with 4 additions and 4 deletions

View File

@ -429,7 +429,7 @@
<field name="date_deadline" invisible="context.get('deadline_visible',True)"/>
<field name="type_id" invisible="context.get('set_visible',False)"/>
<button name="next_type" invisible="context.get('set_visible',False)"
states="draft,open,pending"
states="open,pending"
string="Change Stage"
type="object"
icon="gtk-go-forward"

View File

@ -62,7 +62,7 @@
</group>
<field name="user_id"/>
<field name="version_id" colspan="2" widget="selection"/>
<group colspan="2" col="4">
<group colspan="2" col="4" attrs="{'invisible': [('type_id','=', False)]}">
<field name="type_id" string="Stages" />
<button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/>
<button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage"/>
@ -132,8 +132,8 @@
<field name="project_id" />
<field name="priority" string="Priority"/>
<field name="type_id" widget="selection" readonly="1" string="Stages" />
<button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/>
<button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage"/>
<button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage" attrs="{'invisible': [('type_id','=', False)]}"/>
<button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage" attrs="{'invisible': [('type_id','=', False)]}"/>
<field name="version_id" widget="selection"/>
<field name="user_id"/>
<field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>