<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
        <!-- After installation of the module, open the related menu -->
        <record id="action_client_mrp_menu" model="ir.actions.client">
            <field name="name">Open MRP Menu</field>
            <field name="tag">reload</field>
            <field name="params" eval="{'menu_id': ref('base.menu_mrp_root')}"/>
        </record>
        <record id="base.open_menu" model="ir.actions.todo">
            <field name="action_id" ref="action_client_mrp_menu"/>
            <field name="state">open</field>
        </record>
    </data>
    <data>
        <record id="view_mrp_config" model="ir.ui.view">
            <field name="name">mrp settings</field>
            <field name="model">mrp.config.settings</field>
            <field name="arch" type="xml">
                <form string="Configure Manufacturing" class= "oe_form_configuration">
                    <header>
                        <button string="Apply" type="object" name="execute" class="oe_highlight"/>
                        or
                        <button string="Cancel" type="object" name="cancel" class="oe_link"/>
                    </header>
                    <separator string="Manufacturing Order"/>
                    <group>
                        <label for="id" string="Order"/>
                        <div>
                            <div>
                                <field name="module_mrp_byproduct" class="oe_inline"/>
                                <label for="module_mrp_byproduct"/>
                            </div>
                            <div>
                                <field name="module_mrp_repair" class="oe_inline"/>
                                <label for="module_mrp_repair"/>
                            </div>
                        </div>
                    </group>
                    <group >
                        <label for="id" string="Planning"/>
                        <div>
                            <div>
                                <field name="group_mrp_routings" class="oe_inline"/>
                                <label for="group_mrp_routings"/>
                            </div>
                             <div>
                                <field name="module_mrp_operations" class="oe_inline"/>
                                <label for="module_mrp_operations" />
                            </div>
                        </div>
                    </group>
                    <separator string="Master Data"/>
                    <group >
                        <label for="id" string="Products"/>
                        <div>
                            <div>
                                <field name="group_mrp_properties" class="oe_inline"/>
                                <label for="group_mrp_properties" />
                            </div>
                        </div>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_mrp_configuration" model="ir.actions.act_window">
            <field name="name">Configure Manufacturing</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">mrp.config.settings</field>
            <field name="view_mode">form</field>
            <field name="target">inline</field>
        </record>

        <menuitem id="base.menu_mrp_config" name="Manufacturing" parent="base.menu_config"
            sequence="8" action="action_mrp_configuration"/>

    </data>
</openerp>
