<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_create_purchase_order" model="ir.ui.view">
        <field name="name">Create Purchase Order</field>
        <field name="model">purchase.blanket.order.wizard</field>
        <field name="arch" type="xml">
            <form string="Create Purchase Order">
                <div>
                    <field name="line_ids" nolabel="1">
                        <tree create="false" editable="bottom">
                            <field name="blanket_line_id" invisible="1" />
                            <field name="product_id" force_save="1" />
                            <field name="partner_id" force_save="1" />
                            <field name="date_schedule" force_save="1" />
                            <field name="price_unit" force_save="1" />
                            <field name="remaining_uom_qty" force_save="1" />
                            <field name="product_uom" groups="uom.group_uom" />
                            <field name="qty" />
                        </tree>
                    </field>
                </div>
                <footer>
                    <button
                        name="create_purchase_order"
                        string="Create and View Order"
                        type="object"
                        class="btn-primary"
                    />
                    <button string="Cancel" class="btn-default" special="cancel" />
                </footer>
            </form>
        </field>
    </record>
    <record id="action_create_purchase_order" model="ir.actions.act_window">
        <field name="name">Create RFQ</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">purchase.blanket.order.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
        <field
            name="binding_model_id"
            ref="purchase_blanket_order.model_purchase_blanket_order_line"
        />
    </record>
</odoo>
