[FIX]mrp_repair:set a proper attrs on button

lp bug: https://launchpad.net/bugs/1047365 fixed

bzr revid: mma@tinyerp.com-20120907132242-w9oabs4jecp3auo8
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-09-07 18:52:42 +05:30
parent 2698e6dd27
commit 112e96cc20
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@
<button name="action_invoice_create" states="2binvoiced" string="Make Invoice" class="oe_highlight"/>
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
<button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
<button name="action_cancel" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="object" attrs="{'invisible':[('invoice_method','!=','none')]}"/>
<button name="action_cancel" states="invoice_except" string="Cancel Repair" type="object" attrs="{'invisible':[('invoice_method','!=','none')]}"/>
<button name="action_cancel" string="Cancel Repair" type="object" attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', 'not in',('confirmed','2binvoiced','ready','under_repair'))]}"/>
<button name="action_cancel" string="Cancel Repair" type="object"
attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', '!=', 'invoice_except')]}"/>
<button name="cancel" states="draft" string="Cancel Repair"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done"/>
</header>