[MERGE] [FIX] models: do not drop low level columns (aka 'magic columns') when deleti...
[odoo/odoo.git] / addons / account_voucher / account_voucher_pay_invoice.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4         <record id="view_invoice_customer" model="ir.ui.view">
5             <field name="name">account.invoice.customer.pay</field>
6             <field name="model">account.invoice</field>
7             <field name="inherit_id" ref="account.invoice_form"/>
8             <field name="arch" type="xml">
9                 <xpath expr="//button[@name='invoice_open'][last()]" position="after">
10                     <button name="invoice_pay_customer" type="object" string="Register Payment"
11                         attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}" groups="base.group_user"/>
12                     <button name="invoice_pay_customer" type="object" string="Register Payment"
13                         attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',False)]}" class="oe_highlight" groups="base.group_user"/>
14                 </xpath>
15             </field>
16         </record>
17         <record id="view_invoice_supplier" model="ir.ui.view">
18             <field name="name">account.invoice.supplier.pay</field>
19             <field name="model">account.invoice</field>
20             <field name="inherit_id" ref="account.invoice_supplier_form"/>
21             <field name="arch" type="xml">
22                 <xpath expr="//button[@name='invoice_open'][last()]" position="after">
23                     <button name="invoice_pay_customer" type="object" string="Pay" states="open" class="oe_highlight" groups="base.group_user"/>
24                 </xpath>
25             </field>
26         </record>
27     </data>
28 </openerp>