<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- ================================================================= -->
    <!-- Account Transfer Wizard Form View                                 -->
    <!-- ================================================================= -->

    <record id="fusion_account_transfer_form" model="ir.ui.view">
        <field name="name">fusion.account.transfer.form</field>
        <field name="model">fusion.account.transfer</field>
        <field name="arch" type="xml">
            <form string="Account Balance Transfer">
                <group>
                    <group string="Transfer Details">
                        <field name="company_id" invisible="1"/>
                        <field name="currency_id" invisible="1"/>
                        <field name="source_account_id"
                               options="{'no_create': True}"
                               placeholder="Select source account..."/>
                        <field name="destination_account_id"
                               options="{'no_create': True}"
                               placeholder="Select destination account..."/>
                        <field name="amount"/>
                    </group>
                    <group string="Entry Details">
                        <field name="journal_id"
                               options="{'no_create': True}"/>
                        <field name="date"/>
                        <field name="partner_id"
                               options="{'no_create': True}"/>
                        <field name="memo"
                               placeholder="e.g. Reclassification of prepaid expenses"/>
                    </group>
                </group>
                <footer>
                    <button name="action_transfer"
                            type="object"
                            string="Create Transfer"
                            class="btn-primary"
                            data-hotkey="q"/>
                    <button string="Cancel"
                            class="btn-secondary"
                            special="cancel"
                            data-hotkey="x"/>
                </footer>
            </form>
        </field>
    </record>

</odoo>
