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

    <!-- Quotation Builder under Configuration -->
    <menuitem id="menu_wc_quotation_root"
        name="Quotation Builder"
        parent="fusion_claims.menu_adp_config"
        sequence="50"/>

    <!-- Assessments -->
    <menuitem id="menu_wc_assessment"
        name="Wheelchair Assessments"
        parent="menu_wc_quotation_root"
        action="action_wc_assessment"
        sequence="10"/>

    <!-- Configuration submenu -->
    <menuitem id="menu_wc_config"
        name="Configuration"
        parent="menu_wc_quotation_root"
        sequence="90"
        groups="sales_team.group_sale_manager"/>

    <menuitem id="menu_wc_sections"
        name="Wheelchair Sections"
        parent="menu_wc_config"
        action="action_wc_section"
        sequence="10"/>

    <menuitem id="menu_wc_upcharge_rules"
        name="Upcharge Rules"
        parent="menu_wc_config"
        action="action_wc_upcharge_rule"
        sequence="20"/>

    <menuitem id="menu_wc_config_flows"
        name="Configuration Flows"
        parent="menu_wc_config"
        action="action_wc_config_flow"
        sequence="30"/>

    <menuitem id="menu_equipment_types"
        name="Equipment Types"
        parent="menu_wc_config"
        action="action_equipment_type"
        sequence="40"/>

    <!-- Server action: Auto-Populate All Sections -->
    <record id="action_auto_populate_all" model="ir.actions.server">
        <field name="name">Auto-Populate All Sections from Inventory</field>
        <field name="model_id" ref="model_fusion_wc_section"/>
        <field name="state">code</field>
        <field name="code">action = model.action_auto_populate_all_sections()</field>
    </record>

    <menuitem id="menu_wc_auto_populate"
        name="Auto-Populate Products"
        parent="menu_wc_config"
        action="action_auto_populate_all"
        sequence="5"/>

</odoo>
