<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="mrp_production_form_view" model="ir.ui.view">
        <field name="name">MRP Production Form with Sale Order</field>
        <field name="model">mrp.production</field>
        <field name="inherit_id" ref="mrp.mrp_production_form_view" />
        <field name="arch" type="xml">
            <page name="miscellaneous" position="inside">
                <group>
                    <field name="sale_id" />
                    <field name="partner_id" />
                    <field name="commitment_date" />
                    <field name="client_order_ref" />
                </group>
            </page>
        </field>
    </record>

    <record id="mrp_production_tree_view" model="ir.ui.view">
        <field name="name">MRP Production Tree with Sale Order</field>
        <field name="model">mrp.production</field>
        <field name="inherit_id" ref="mrp.mrp_production_tree_view" />
        <field name="arch" type="xml">
            <field name="date_start" position="after">
                <field name="sale_id" optional="show" />
                <field name="partner_id" optional="show" />
                <field name="commitment_date" optional="hide" />
                <field name="client_order_ref" optional="hide" />
            </field>
        </field>
    </record>

</odoo>
