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">
|
|
|
|
<field name="name">account.invoice.customer.pay</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-06 09:07:29 +00:00
|
|
|
<xpath expr="//button[@name='invoice_open']" position="after">
|
|
|
|
<div>
|
2012-06-07 05:48:26 +00:00
|
|
|
<button name="invoice_pay_customer" type="object" string="Register Payment" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}"/>
|
2012-06-26 10:01:34 +00:00
|
|
|
<button name="invoice_pay_customer" type="object" string="Register Payment" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}" class="oe_highlight"/>
|
2012-06-06 09:07:29 +00:00
|
|
|
</div>
|
|
|
|
</xpath>
|
2011-09-27 13:07:30 +00:00
|
|
|
</field>
|
|
|
|
</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="type">form</field>
|
|
|
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-05 13:31:40 +00:00
|
|
|
<xpath expr="//button[@name='invoice_open']" position="after">
|
|
|
|
<div>
|
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
|
|
|
</div>
|
|
|
|
</xpath>
|
2011-09-27 13:07:30 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-10-10 19:15:53 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|