<?xml version="1.0" encoding="utf-8" ?>
<!--
    Copyright 2015 Akretion - Alexis de Lattre
    Copyright 2018 Tecnativa - Pedro M. Baeza
    License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.account_check_deposit</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="account.res_config_settings_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[@id='bank_cash']" position="after">
                <h2>Check Deposits</h2>
                <div class="row mt16 o_settings_container" id="account_check_deposit">
                    <div
                        class="col-xs-12 col-md-6 o_setting_box"
                        id="account_check_deposit_offsetting_account"
                    >
                        <div class="o_setting_left_pane" />
                        <div class="o_setting_right_pane">
                            <label for="check_deposit_offsetting_account" />
                            <div class="content-group">
                                <field
                                    name="check_deposit_offsetting_account"
                                    class="o_light_label mt16"
                                    widget="radio"
                                />
                            </div>
                        </div>
                    </div>
                    <div
                        class="col-xs-12 col-md-6 o_setting_box"
                        attrs="{'invisible': ['|', ('has_chart_of_accounts', '=', False), ('check_deposit_offsetting_account', '!=', 'transfer_account')]}"
                        id="account_check_deposit_transfer_account_id"
                    >
                        <div class="o_setting_left_pane" />
                        <div class="o_setting_right_pane">
                            <label for="check_deposit_transfer_account_id" />
                            <field
                                name="check_deposit_transfer_account_id"
                                class="oe_inline"
                                context="{'default_reconcile': True}"
                            />
                        </div>
                    </div>
                    <div
                        class="col-xs-12 col-md-6 o_setting_box"
                        id="account_check_deposit_post_move"
                    >
                        <div class="o_setting_left_pane">
                            <field name="check_deposit_post_move" />
                        </div>
                        <div class="o_setting_right_pane">
                            <label for="check_deposit_post_move" />
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
