2010-10-10 19:15:53 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2011-09-27 13:07:30 +00:00
|
|
|
<record id="view_invoice_customer" model="ir.ui.view">
|
2012-06-26 12:06:08 +00:00
|
|
|
<field name="name">account.invoice.customer.pay</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//button[@name='invoice_open'][last()]" position="after">
|
|
|
|
<button name="invoice_pay_customer" type="object" string="Register Payment"
|
|
|
|
attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}"/>
|
|
|
|
<button name="invoice_pay_customer" type="object" string="Register Payment"
|
|
|
|
attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',False)]}" class="oe_highlight"/>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
2011-09-27 13:07:30 +00:00
|
|
|
</record>
|
|
|
|
<record id="view_invoice_supplier" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.supplier.pay</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-26 12:06:08 +00:00
|
|
|
<xpath expr="//button[@name='invoice_open'][last()]" position="after">
|
2012-06-26 10:01:34 +00:00
|
|
|
<button name="invoice_pay_customer" type="object" string="Pay" states="open" class="oe_highlight"/>
|
2012-06-05 13:31:40 +00:00
|
|
|
</xpath>
|
2011-09-27 13:07:30 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-10-10 19:15:53 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|