<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form (in partner_statement)</field>
        <field name="model">res.config.settings</field>
        <field name="priority" eval="40" />
        <field name="inherit_id" ref="account.res_config_settings_view_form" />
        <field name="arch" type="xml">
            <block id="print_vendor_checks_setting_container" position="after">
                <block title="Partner Statements">
                    <setting
                        id="group_activity_statement"
                        string="Activity Statements"
                        help="Activity Statements show all transactions between two dates."
                    >
                        <field name="group_activity_statement" />
                        <div
                            class="content-group"
                            invisible="group_activity_statement == False and group_outstanding_statement == False"
                        >
                            <div class="row mt16">
                                <label
                                    for="default_aging_type"
                                    class="col-lg-3 o_light_label"
                                />
                                <field name="default_aging_type" />
                            </div>
                            <div>
                                <field
                                    name="default_show_aging_buckets"
                                    class="oe_inline"
                                />
                                <label
                                    for="default_show_aging_buckets"
                                    class="o_light_label"
                                />
                            </div>
                            <div>
                                <field
                                    name="default_filter_partners_non_due"
                                    class="oe_inline"
                                />
                                <label
                                    for="default_filter_partners_non_due"
                                    class="o_light_label"
                                />
                            </div>
                            <div>
                                <field
                                    name="default_filter_negative_balances"
                                    class="oe_inline"
                                />
                                <label
                                    for="default_filter_negative_balances"
                                    class="o_light_label"
                                />
                            </div>
                        </div>
                    </setting>

                    <setting
                        id="group_outstanding_statement"
                        string="Outstanding Statement"
                        help="Outstanding Statements show all transactions up to a date."
                    >
                        <field name="group_outstanding_statement" />
                        <div
                            class="text-muted"
                            invisible="group_outstanding_statement == False"
                        >
                            Please set defaults under Activity Statements.
                        </div>
                    </setting>
                </block>
            </block>
        </field>
    </record>
</odoo>
