<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_suspend_reason_wizard_form" model="ir.ui.view">
            <field name="name">suspend.reason.wizard.form</field>
            <field name="model">suspend.reason.wizard</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group>
                            <group>
                                <field name="suspend_reason"/>
                                <field name="suspend_description"/>
                            </group>
                            <group>
                                <field name="suspend_attachment"/>
                                <field name="final_suspend_date" readonly="1" force_save="1"/>
                            </group>
                        </group>
                        <footer>
                            <button name="action_submit" type="object" string="Submit" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>

            </field>
        </record>
        <record id="view_suspend_member_reason_wizard_form" model="ir.ui.view">
            <field name="name">suspend.reason.wizard.form</field>
            <field name="model">suspend.reason.wizard</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group>
                            <group>
                                <field name="suspend_reason"/>
                                <field name="suspend_description"/>
                            </group>
                            <group>
                                <field name="suspend_attachment"/>
                                <field name="final_suspend_date" readonly="1" force_save="1"/>
                            </group>
                        </group>
                        <footer>
                            <button name="action_member_submit" type="object" string="Submit" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>
            </field>
        </record>
        <record id="view_resume_reason_wizard_form" model="ir.ui.view">
            <field name="name">resume.reason.wizard.form</field>
            <field name="model">suspend.reason.wizard</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group>
                            <group>
                                <field name="suspend_reason" string="Reason for return"/>
                                <field name="suspend_description" string="Notes"/>
                            </group>
                            <group>
                                <field name="resume_date" required="1"/>
                            </group>
                        </group>
                        <footer>
                            <button name="action_submit"
                                    invisible="not context.get('active_model') == 'grant.benefit'" type="object"
                                    string="Submit" class="oe_highlight"/>
                            <button name="action_member_submit"
                                    invisible="not context.get('active_model') == 'family.member'" type="object"
                                    string="Submit" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>

            </field>
        </record>
    </data>
</odoo>
