<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        
        <!--  Make the invoice-->
        
		<record id="view_purchase_line_invoice" model="ir.ui.view">
            <field name="name">Create invoices</field>
            <field name="model">purchase.order.line_invoice</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Select an Open Sale Order">
				    <separator colspan="4" string="Do you want to generate the supplier invoices ?" />
				    <group col="2" colspan="4">
                		<button icon='gtk-cancel' special="cancel"
                			string="Cancel" />
                		<button name="makeInvoices" string="Confirm"
                			colspan="1" type="object" icon="gtk-ok" />
                	</group>
                </form>
            </field>
        </record>

	<act_window name="Create invoices"		    
		    res_model="purchase.order.line_invoice"
		    src_model="purchase.order.line"
		    view_mode="form"
		    target="new"        
            key2="client_action_multi"    
		    id="action_view_purchase_line_invoice"/>	
	</data>
</openerp>	
        