[MIG] Forward port of lp:account-banking/6.1, rev. 165

[FIX] be less intrusive when adapting button's attrs, thereby preserving
	the fix for lp:1172293 in ocb-addons
This commit is contained in:
unknown
2013-05-01 16:40:54 +02:00
committed by Stefan Rijnhart

View File

@@ -13,12 +13,8 @@
<field name="arch" type="xml">
<data>
<xpath expr="/form/group/button[@string='Select Invoices to Pay']"
position="replace">
<button colspan="2" name="%(account_payment.action_create_payment_order)s"
string="Select Invoices to Pay" type="action"
attrs="{'invisible':[('state','!=','draft')]}"
icon="gtk-find"
/>
position="attributes">
<attribute name="attrs">{'invisible':[('state','!=','draft')]}</attribute>
</xpath>
<xpath expr="/form/group/button[@string='Make Payments']"
position="replace">