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

    <!-- ============================================================
         Equipment Type — Tree View
         ============================================================ -->
    <record id="view_equipment_type_tree" model="ir.ui.view">
        <field name="name">fusion.equipment.type.tree</field>
        <field name="model">fusion.equipment.type</field>
        <field name="arch" type="xml">
            <list string="Equipment Types" editable="bottom">
                <field name="sequence" widget="handle"/>
                <field name="name"/>
                <field name="code"/>
                <field name="icon"/>
                <field name="active" column_invisible="1"/>
            </list>
        </field>
    </record>

    <!-- ============================================================
         Equipment Type — Form View
         ============================================================ -->
    <record id="view_equipment_type_form" model="ir.ui.view">
        <field name="name">fusion.equipment.type.form</field>
        <field name="model">fusion.equipment.type</field>
        <field name="arch" type="xml">
            <form string="Equipment Type">
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="e.g. Stair Lift"/>
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="code" placeholder="e.g. stair_lift"/>
                            <field name="icon" placeholder="e.g. fa-arrow-up"/>
                            <field name="sequence"/>
                        </group>
                        <group>
                            <field name="active"/>
                        </group>
                    </group>
                    <group string="Description">
                        <field name="description" nolabel="1"
                            placeholder="Optional description of this equipment type..."/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- ============================================================
         Equipment Type — Action
         ============================================================ -->
    <record id="action_equipment_type" model="ir.actions.act_window">
        <field name="name">Equipment Types</field>
        <field name="res_model">fusion.equipment.type</field>
        <field name="view_mode">list,form</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_smiling_face">
                Create an Equipment Type
            </p>
            <p>
                Equipment types define the categories of equipment that can be
                assessed and quoted. Each type can have its own Configuration Flow
                with custom form steps.
            </p>
        </field>
    </record>

</odoo>
