[IMP] account_voucher : Register payment should be red when invoice is sent.

bzr revid: mdi@tinyerp.com-20120607054826-b001z50izgskxkty
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-06-07 11:18:26 +05:30
parent be744d3119
commit 31d1cd4587
1 changed files with 2 additions and 1 deletions

View File

@ -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>