<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id='repair_type_action' model='ir.actions.act_window'>
        <field name="name">Repair Types</field>
        <field name="res_model">repair.type</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
        name="Repair Types"
        id="repair_type_menu"
        parent="repair.repair_menu_config"
        action="repair_type_action"
        groups="stock.group_stock_manager"
    />

    <record id="repair_type_view_form" model="ir.ui.view">
        <field name="name">Repair Types Form</field>
        <field name="model">repair.type</field>
        <field name="arch" type="xml">
            <form>
                <sheet string="Repair types">
                    <label for="name" />
                    <h1>
                        <field name="name" />
                    </h1>
                    <group>
                        <group>
                            <field name="source_location_id" />
                        </group>
                        <group>
                            <field name="source_location_add_part_id" />
                            <field name="destination_location_add_part_id" />
                            <field name="source_location_remove_part_id" />
                            <field name="destination_location_remove_part_id" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="repair_type_view_tree" model="ir.ui.view">
        <field name="name">Repair Types List</field>
        <field name="model">repair.type</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="source_location_id" />
                <field name="source_location_add_part_id" />
                <field name="destination_location_add_part_id" />
                <field name="source_location_remove_part_id" />
                <field name="destination_location_remove_part_id" />
            </tree>
        </field>
    </record>
</odoo>
