[FIX] be less intrusive when adapting button's attrs, thereby preserving

the fix for lp:1172293 in ocb-addons
This commit is contained in:
Holger Brunn
2013-04-25 10:15:21 +02:00
parent 7eb2f9f8cd
commit 9f829489a3

View File

@@ -342,12 +342,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">