<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="view_mod_funding_approved_wizard_form" model="ir.ui.view">
        <field name="name">fusion_claims.mod.funding.approved.wizard.form</field>
        <field name="model">fusion_claims.mod.funding.approved.wizard</field>
        <field name="arch" type="xml">
            <form string="Funding Approved">
                <field name="sale_order_id" invisible="1"/>

                <div class="alert alert-success mb-3">
                    <i class="fa fa-check"/>
                    Record the funding approval. Case worker and HVMP reference can be updated when PCA is received.
                </div>

                <group>
                    <group string="Case Details">
                        <field name="case_worker_id"
                               options="{'no_create': False, 'no_quick_create': False}"
                               placeholder="Select or create case worker..."/>
                        <field name="hvmp_reference"
                               placeholder="e.g. HVW38845 (optional)"/>
                    </group>
                </group>

                <footer>
                    <button name="action_confirm" type="object"
                            string="Confirm Approval" class="btn-success" icon="fa-check"/>
                    <button string="Cancel" class="btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>
</odoo>
