[IMP] account_voucher : Register payment should be red when invoice is sent.
bzr revid: mdi@tinyerp.com-20120607054826-b001z50izgskxkty
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='invoice_open']" position="after">
|
||||
<div>
|
||||
<button name="invoice_pay_customer" type="object" string="Register Payment" states="open" class="oe_form_button_hi"/>
|
||||
<button name="invoice_pay_customer" type="object" string="Register Payment" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}"/>
|
||||
<button name="invoice_pay_customer" type="object" string="Register Payment" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}" class="oe_form_button_hi"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user