<?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="arch" type="xml">
                <form string="Select an Open Sales Order" version="7.0">
                    <group>
                        <label string="Do you want to generate the supplier invoices?"/>
                    </group>
                    <footer>
                        <button name="makeInvoices" string="Confirm" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </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>

