Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1047365-mma into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1047365 in OpenERP Addons: "[trunk] multiple cancel button on mrp_repair"
https://bugs.launchpad.net/openobject-addons/+bug/1047365
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1047365-mma/+merge/123482
Hello
I have set a proper attrs on button for button visibility and fix the
issue lp:1047365
Thanks
Mayur
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1047365-mma/+merge/123482
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1047365-mma.
=== modified file 'mrp_repair/mrp_repair_view.xml'
--- mrp_repair/mrp_repair_view.xml 2012-08-15 22:30:38 +0000
+++ mrp_repair/mrp_repair_view.xml 2012-09-10 05:48:24 +0000
@@ -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>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp