<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="pm_maintenance_equipment_form_view" model="ir.ui.view">
        <field name="name">pm.maintenance.equipment.form.view</field>
        <field name="model">maintenance.equipment</field>
        <field name="inherit_id" ref="maintenance.hr_equipment_view_form" />
        <field name="arch" type="xml">
            <field name="category_id" position="after">
                <field name="product_category_id" invisible="1" />
                <field name="product_id" context="{'default_maintenance_ok': True}" />
            </field>
        </field>
    </record>
    <record id="pm_maintenance_equipment_search_view" model="ir.ui.view">
        <field name="name">pm.maintenance.equipment.search.view</field>
        <field name="model">maintenance.equipment</field>
        <field name="inherit_id" ref="maintenance.hr_equipment_view_search" />
        <field name="arch" type="xml">
            <field name="category_id" position="after">
                <field name="product_id" context="{'default_maintenance_ok': True}" />
            </field>
        </field>
    </record>
    <record id="pm_maintenance_category_equipment_form_view" model="ir.ui.view">
        <field name="name">pm.maintenance.equipment.category.form.view</field>
        <field name="model">maintenance.equipment.category</field>
        <field name="inherit_id" ref="maintenance.hr_equipment_category_view_form" />
        <field name="arch" type="xml">
            <field name="technician_user_id" position="after">
                <field name="product_category_id" class="oe_inline" />
            </field>
        </field>
    </record>
</odoo>
