[IMP] visibility of goal buttons depending of state

bzr revid: mat@openerp.com-20130313093804-q0x7j76o4x6seqzg
This commit is contained in:
Martin Trigaux 2013-03-13 10:38:04 +01:00
parent 976c46d2b1
commit 888dcb5850
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@
<label for="current" />
<div>
<field name="current" attrs="{'readonly':[('computation_mode','!=','manually')]}" class="oe_inline"/>
<button string="Refresh state" type="object" name="update" states="inprogress,inprogress_update,failed,reached" class="oe_highlight oe_inline"/>
<button name="write" type="object" string="The current value is up to date" help="Indicate that the current value of the manual goal is still correct and avoid reminders" attrs="{'invisible':[('computation_mode','!=', 'manually')]}"/>
<button string="Refresh state" type="object" name="update" class="oe_highlight oe_inline" attrs="{'invisible':['|',('computation_mode', '=', 'manually'),('state', '=', 'draft')]}"/>
<button name="write" type="object" string="The current value is up to date" help="Indicate that the current value of the manual goal is still correct and avoid reminders" attrs="{'invisible':['|',('computation_mode','!=', 'manually'),('state','=','draft')]}"/>
</div>
</group>
</group>