<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="view_wiz_switch_workcenter_form" model="ir.ui.view">
        <field name="model">switch.workcenter</field>
        <field name="arch" type="xml">
            <form string="Switch Workcenter">
                <group col="4">
                    <p colspan="4">
    Replace selected workcenters by another one.
                    </p>
                    <field name="parent_workcenter_id" invisible="1" />
                    <field
                        name="workcenter_id"
                        domain="[('parent_level_1_id', '=', parent_workcenter_id)]"
                    />
                </group>
                <footer>
                    <button
                        name="switch_workcenter"
                        string="Apply"
                        type="object"
                        class="oe_highlight"
                    />
                    or
                    <button special="cancel" string="Cancel" class="oe_link" />
                </footer>
            </form>
        </field>
    </record>

    <record id="action_switch_workcenter" model="ir.actions.act_window">
        <field name="name">Switch Workcenter</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">switch.workcenter</field>
        <field name="view_mode">form</field>
        <field name="binding_view_types">form,list</field>
        <field name="binding_model_id" ref="mrp.model_mrp_workorder" />
        <field name="view_id" ref="view_wiz_switch_workcenter_form" />
        <field name="target">new</field>
    </record>

</odoo>
