<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright 2024-2026 Nexa Systems Inc.
    License OPL-1 (Odoo Proprietary License v1.0)
-->
<odoo>
    <record id="view_discretionary_benefit_wizard_form" model="ir.ui.view">
        <field name="name">fusion_claims.discretionary.benefit.wizard.form</field>
        <field name="model">fusion_claims.discretionary.benefit.wizard</field>
        <field name="arch" type="xml">
            <form string="Discretionary Benefits Form">
                <sheet>
                    <group string="Client Information">
                        <group>
                            <field name="sale_order_id" invisible="1"/>
                            <field name="client_name"/>
                            <field name="address"/>
                            <field name="city"/>
                            <field name="province"/>
                            <field name="postal_code"/>
                        </group>
                        <group>
                            <field name="phone_number"/>
                            <field name="alt_phone"/>
                            <field name="email"/>
                            <field name="member_id"/>
                            <field name="form_date"/>
                        </group>
                    </group>
                    <group string="Submission Details">
                        <group>
                            <field name="item_type"/>
                        </group>
                        <group>
                            <field name="odsp_office_id"/>
                        </group>
                    </group>
                    <group>
                        <field name="other_description" placeholder="Description of the request..."/>
                    </group>
                    <group>
                        <field name="email_body_notes" placeholder="e.g. URGENT: Client needs equipment by March 1st..."
                               help="These notes appear at the top of the email body, below the title. Use for urgency or priority information."/>
                    </group>
                </sheet>
                <footer>
                    <button name="action_fill_and_attach" type="object"
                            string="Fill &amp; Attach Form" class="btn-primary"/>
                    <button name="action_send_fax" type="object"
                            string="Send Fax" class="btn-primary"/>
                    <button name="action_send_email" type="object"
                            string="Send Email" class="btn-primary"/>
                    <button name="action_send_fax_and_email" type="object"
                            string="Send Fax &amp; Email" class="btn-primary"/>
                    <button string="Cancel" class="btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="action_discretionary_benefit_wizard" model="ir.actions.act_window">
        <field name="name">Discretionary Benefits Form</field>
        <field name="res_model">fusion_claims.discretionary.benefit.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>
