<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="view_order_batch_product_form" model="ir.ui.view">
        <field name="name">sale.order.batch.product.form</field>
        <field name="model">sale.order.batch.product</field>
        <field name="arch" type="xml">
            <form>
                <header>
                    <field name="state" invisible="1"/>
                </header>
                <sheet>
                    <div class="oe_button_box" name="button_box">
                    </div>
                    <h1>
                        <field name="product_id"/>
                    </h1>
                    <group>
                        <group name="product_info">
                            <field name="batch_id"/>
                            <field name="product_uom_qty"/>
                        </group>
                        <group name="packaging_info">
                            <field name="product_packaging_id"/>
                            <field name="product_packaging_qty"/>
                        </group>
                    </group>
                    <notebook>
                         <page string="Sale Order Lines" name="order_line">
                            <field name="sale_order_line_ids" widget="section_and_note_one2many">
                                <tree editable="bottom" create="0">
                                    <field name="company_id" invisible="1"/>
                                    <field name="sequence" widget="handle"/>
                                    <field name="order_id"/>
                                    <field name="order_partner_id"/>
                                    <field name="product_template_id" optional="hide"/>
                                    <field name="product_id" optional="hide"/>
                                    <field name="name"/>
                                    <field name="product_uom_qty"/>
                                    <field name="price_unit"/>
                                    <field name="price_subtotal"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        </field>
    </record>
</odoo>
