<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
	    <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">
	       <button name="invoice_open" position="after">
	           <button name="invoice_pay_customer" type="object" string="Payment" states="open" icon="gtk-go-forward"/>
	       </button>
	       </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">
	            <button name="invoice_open" position="after">
	                <button name="invoice_pay_customer" type="object" string="Pay Invoice" states="open" icon="gtk-go-forward"/>
	            </button>
	        </field>
	    </record>
    </data>
</openerp>
