<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Schedule Assessment Wizard Form View -->
    <record id="view_schedule_assessment_wizard_form" model="ir.ui.view">
        <field name="name">fusion_claims.schedule.assessment.wizard.form</field>
        <field name="model">fusion_claims.schedule.assessment.wizard</field>
        <field name="arch" type="xml">
            <form string="Schedule Assessment">
                <group>
                    <group string="Assessment Details">
                        <field name="sale_order_id" invisible="1"/>
                        <field name="assessment_date"/>
                        <field name="assessment_time" widget="float_time"/>
                        <field name="duration" widget="float_time"/>
                        <field name="assessor_id"/>
                    </group>
                    <group string="Location &amp; Notes">
                        <field name="location"/>
                        <field name="notes"/>
                    </group>
                </group>
                <group>
                    <group string="Calendar Options">
                        <field name="create_calendar_event"/>
                        <field name="send_reminder" invisible="not create_calendar_event"/>
                    </group>
                </group>
                <footer>
                    <button name="action_schedule" type="object" 
                            string="Schedule Assessment" class="btn-primary"
                            icon="fa-calendar-check-o"/>
                    <button string="Cancel" class="btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

    <!-- Action for the wizard -->
    <record id="action_schedule_assessment_wizard" model="ir.actions.act_window">
        <field name="name">Schedule Assessment</field>
        <field name="res_model">fusion_claims.schedule.assessment.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>
