<?xml version="1.0"?>
<form string="Move Model" class="o_auto_transfer_form">
                <header>
                    <button name="action_activate" type="object" string="Activate" class="oe_highlight" invisible="state == 'in_progress' or not active"/>
                    <button name="action_perform_auto_transfer" type="object" string="Compute Transfer" class="oe_highlight" invisible="state != 'in_progress' or not active"/>
                    <button name="action_disable" type="object" string="Disable" invisible="state != 'in_progress' or not active"/>
                    <field name="state" widget="statusbar"/>
                </header>
                <sheet>
                    <div name="button_box" class="oe_button_box" invisible="not id">
                        <button class="oe_stat_button" type="action" name="377" icon="fa-book" context="{'search_default_transfer_model_id': id, 'default_transfer_model_id': id}">
                            <field name="move_ids_count" string="Transfers" widget="statinfo"/>
                        </button>
                    </div>
                    <widget name="web_ribbon" title="Archived" bg_color="bg-danger" invisible="active"/>
                    <field name="active" invisible="1"/>
                    <div class="oe_title">
                        <label for="name" string="Description"/>
                        <h1>
                            <field name="name" placeholder="e.g. Monthly Expense Transfer"/>
                        </h1>
                    </div>
                    <group>
                        <group>
                            <label for="date_start" string="Period"/>
                            <div>
                                <field name="date_start" class="oe_inline"/>
                                <span> to </span>
                                <field name="date_stop" class="oe_inline"/>
                            </div>
                            <field name="frequency"/>
                        </group>
                        <group>
                            <field name="journal_id" string="Journal" domain="[('type', '=', 'general')]"/>
                        </group>
                    </group>
                    <group>
                        <group string="Origin Accounts">
                            <field name="account_ids" nolabel="1" colspan="2">
                                <list>
                                    <field name="code"/>
                                    <field name="name"/>
                                    <field name="account_type"/>
                                </list>
                            </field>
                        </group>
                        <group string="Automated Transfer">
                            <field name="line_ids" nolabel="1" colspan="2" context="{'default_transfer_model_id': id}">
                                <list editable="bottom">
                                    <field name="percent_is_readonly" column_invisible="True"/>
                                    <field name="sequence" widget="handle"/>
                                    <field name="analytic_account_ids" widget="many2many_tags"/>
                                    <field name="partner_ids" widget="many2many_tags" domain="[('parent_id', '=', False)]"/>
                                    <field name="percent" string="Percent (%)" readonly="percent_is_readonly"/>
                                    <field name="account_id"/>
                                </list>
                            </field>
                        </group>
                    </group>
                </sheet>
            </form>
        