<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="view_send_page11_wizard_form" model="ir.ui.view">
        <field name="name">fusion_claims.send.page11.wizard.form</field>
        <field name="model">fusion_claims.send.page11.wizard</field>
        <field name="arch" type="xml">
            <form string="Send Page 11 for Signing">
                <group>
                    <group string="Case Information">
                        <field name="sale_order_id" invisible="1"/>
                        <field name="client_name"/>
                        <field name="case_ref"/>
                    </group>
                    <group string="Recipient">
                        <field name="signer_name"/>
                        <field name="signer_email" widget="email"/>
                        <field name="signer_type"/>
                        <field name="expiry_days"/>
                    </group>
                </group>
                <group string="Personal Message (Optional)">
                    <field name="custom_message" nolabel="1" placeholder="Add a personal note to include in the email..."/>
                </group>
                <footer>
                    <button name="action_send" type="object" string="Send Signing Request" class="btn-primary"/>
                    <button string="Cancel" class="btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="action_send_page11_wizard" model="ir.actions.act_window">
        <field name="name">Request Page 11 Signature</field>
        <field name="res_model">fusion_claims.send.page11.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
        <field name="context">{'default_sale_order_id': active_id}</field>
    </record>
</odoo>
