<?xml version="1.0"?>
<form>
                    <header>
                        <field name="is_account_coverage_report_available" invisible="1"/>
                        <button class="btn btn-secondary float-end" invisible="not is_account_coverage_report_available" name="action_download_xlsx_accounts_coverage_report" type="object" string="Accounts Coverage Report"/>
                    </header>

                    <field name="custom_handler_model_id" invisible="1"/>
                    <div class="alert alert-info text-center" invisible="not custom_handler_model_id" role="alert">
                        This report uses report-specific code.
                        You can customize it manually, but any change in the parameters used for its computation could lead to errors.
                    </div>

                    <sheet>
                        <div class="oe_title">
                            <h1>
                                <field name="name" placeholder="Report Name"/>
                            </h1>
                        </div>

                        <group>
                            <group>
                                <field name="root_report_id" domain="[('root_report_id', '=', None)]"/>
                                <field name="availability_condition" required="1" invisible="not root_report_id"/>
                                <field name="use_sections" invisible="line_ids"/>
                            </group>
                            <group>
                                <field name="active" widget="boolean_toggle"/>
                                <field name="country_id" invisible="availability_condition != 'country'" required="availability_condition == 'country'"/>
                                <field name="chart_template" invisible="availability_condition != 'coa'" required="availability_condition == 'coa'"/>
                            </group>
                        </group>

                        <notebook>
                            <page string="Lines" name="page_lines" invisible="use_sections">
                                <field class="w-100" name="line_ids" no_label="1" widget="account_report_lines_list_x2many">
                                    <list limit="2000">
                                        <field name="id" column_invisible="1"/>
                                        <field name="sequence" column_invisible="1"/>
                                        <field name="parent_id" column_invisible="1"/>
                                        <field name="hierarchy_level" column_invisible="1"/>

                                        <field name="name"/>
                                        <field name="code" optional="hide"/>
                                        <field name="print_on_new_page" optional="hide"/>
                                        <field name="hide_if_zero" optional="hide"/>
                                        <field name="user_groupby" optional="hide"/>
                                        <field name="foldable" optional="hide"/>
                                    </list>
                                </field>
                            </page>

                            <page string="Sections" name="page_sections" invisible="not use_sections">
                                <field name="section_report_ids" no_label="1" options="{'no_create': True, 'no_quick_create': True}" domain="[('section_report_ids', '=', False)]" context="{'list_view_ref': 'account_reports.account_report_add_sections_tree', 'active_test': False}"/>
                            </page>

                            <page string="Columns" name="page_columns" invisible="use_sections">
                                <field name="column_ids">
                                    <list editable="bottom">
                                        <field name="sequence" widget="handle"/>
                                        <field name="name"/>
                                        <field name="expression_label"/>
                                        <field name="figure_type"/>
                                        <field name="sortable"/>
                                        <field name="blank_if_zero"/>
                                    </list>
                                </field>
                            </page>

                            <page string="Options" name="page_options" invisible="use_sections">
                                <group>
                                    <group>
                                        <field name="load_more_limit"/>
                                        <field name="prefix_groups_threshold"/>
                                        <field name="filter_hierarchy" required="1"/>
                                        <field name="filter_multi_company" groups="base.group_multi_company" required="1"/>
                                    </group>
                                    <group>
                                        <field name="default_opening_date_filter" required="True"/>
                                        <field name="horizontal_group_ids" widget="many2many_tags" options="{'no_quick_create': True}"/>
                                        <field name="filter_analytic" groups="analytic.group_analytic_accounting"/>
                                        <field name="filter_analytic_groupby" groups="analytic.group_analytic_accounting"/>
                                    </group>
                                    <group string="Advanced" class="oe_edit_only">
                                        <field name="filter_date_range"/>
                                        <field name="filter_unfold_all"/>
                                        <field name="filter_growth_comparison"/>
                                        <field name="filter_period_comparison"/>
                                        <field name="integer_rounding" placeholder="None"/>
                                        <field name="currency_translation" required="1" groups="base.group_multi_currency"/>
                                    </group>
                                    <group string="Filters" class="oe_edit_only">
                                        <field name="filter_account_type"/>
                                        <field name="filter_journals"/>
                                        <field name="filter_partner"/>
                                        <field name="filter_show_draft"/>
                                        <field name="filter_unreconciled"/>
                                        <field name="filter_aml_ir_filters"/>
                                        <field name="filter_hide_0_lines" help="This option hides lines with a value of 0"/>
                                    </group>
                                </group>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            