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

    <record id="res_config_settings_view_form_inherit" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit</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="//block[@name='fiscal_localization_setting_container']" position="after">
                <block title="Chart of Accounts Hierarchy" name="chart_of_accounts_hierarchy_setting_container">



                <div class="row mt16 o_settings_container">
                <setting id="use_auto_account_codes"
                     string="Auto Generate Account Codes">

                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane">
                            <field name="automticAccountsCodes"/>
                        </div>
                        <div class="o_setting_right_pane">
                            <label for="automticAccountsCodes"/>
                            <div class="text-muted">
                                Automatically generate account codes based on parent account
                            </div>
                        </div>
                    </div>


                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane">
                            <field name="useFiexedTree"/>
                        </div>
                        <div class="o_setting_right_pane">
                            <label for="useFiexedTree"/>
                            <div class="text-muted">
                                Use fixed length chart of accounts structure
                            </div>
                            <div class="content-group" invisible="not useFiexedTree">
                                <div class="row mt16">
                                    <label for="chart_account_length" class="col-lg-3 o_light_label"/>
                                    <field name="chart_account_length"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </setting>
                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane"/>
                        <div class="o_setting_right_pane">
                            <label for="chart_account_padding" string="Account Code Padding"/>
                            <div class="text-muted">
                                Number of digits for account code padding
                            </div>
                            <field name="chart_account_padding" class="mt8"/>
                        </div>
                    </div>

                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane"/>
                        <div class="o_setting_right_pane">
                            <label for="bank_account_code_prefix" string="Bank Account Prefix"/>
                            <div class="text-muted">
                                Prefix for bank account codes
                            </div>
                            <field name="bank_account_code_prefix" class="mt8"/>
                        </div>
                    </div>

                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane"/>
                        <div class="o_setting_right_pane">
                            <label for="cash_account_code_prefix" string="Cash Account Prefix"/>
                            <div class="text-muted">
                                Prefix for cash account codes
                            </div>
                            <field name="cash_account_code_prefix" class="mt8"/>
                        </div>
                    </div>
                </div>
                </block>
            </xpath>
        </field>
    </record>

</odoo>
