<?xml version="1.0"?>
<xpath expr="//form" position="inside">
                    <field name="country_code" invisible="1" groups="account.group_account_manager"/>
                    <app data-string="Invoicing" string="Invoicing" name="account" groups="account.group_account_manager">
                        <field name="has_chart_of_accounts" invisible="1"/>
                        <field name="has_accounting_entries" invisible="1"/>
                        <block title="Fiscal Localization" name="fiscal_localization_setting_container" invisible="not is_root_company">
                            <setting string="Fiscal Localization" company_dependent="1" help="Taxes, fiscal positions, chart of accounts &amp; legal statements for your country" documentation="/applications/finance/fiscal_localizations.html">
                                <div class="content-group">
                                    <div class="mt16">
                                        <div>
                                            <label for="chart_template" string="Package" class="col-2 o_light_label"/>
                                            <field name="chart_template" readonly="has_accounting_entries" required="chart_template"/>
                                        </div>
                                        <div class="mt16">
                                            <button name="reload_template" type="object" string="Reload" class="btn-secondary ps-2 w-100" icon="fa-refresh" title="Reload accounting data (taxes, accounts, ...) if you notice inconsistencies. This action is irreversible." invisible="not has_accounting_entries or not chart_template"/>
                                        </div>
                                    </div>
                                </div>
                            </setting>
                        </block>
                        <block title="Taxes" name="default_taxes_setting_container">
                            <setting id="default_taxes" string="Default Taxes" company_dependent="1" help="Default taxes applied when creating new products." documentation="/applications/finance/accounting/taxation/taxes/default_taxes.html">
                                <div class="content-group">
                                    <div class="row mt16">
                                        <label string="Sales Tax" for="sale_tax_id" class="col-lg-3 o_light_label"/>
                                        <field name="sale_tax_id" domain="[('type_tax_use', 'in', ('sale', 'all'))]"/>
                                    </div>
                                    <div class="row">
                                        <label string="Purchase Tax" for="purchase_tax_id" class="col-lg-3 o_light_label"/>
                                        <field name="purchase_tax_id" domain="[('type_tax_use', 'in', ('purchase', 'all'))]"/>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-3">
                                            <label string="Prices" for="account_price_include" class="o_light_label"/>
                                            <div class="fa fa-question-circle" title="This setting cannot be changed after an invoice is created."/>
                                        </div>
                                        <field name="account_price_include" readonly="has_accounting_entries"/>
                                    </div>
                                </div>
                            </setting>
                            <setting id="rounding_method" company_dependent="1" string="Rounding Method" help="How total tax amount is computed in orders and invoices" title="A rounding per line is advised if your prices are tax-included. That way, the sum of line subtotals equals the total with taxes.">
                                <field name="tax_calculation_rounding_method" class="o_light_label mt16" widget="radio"/>
                            </setting>
                            <setting id="eu_service" title="If you sell goods and services to customers in a                                 foreign EU country, you must charge VAT based on the delivery address.                                 This rule applies regardless of where you are located." documentation="/applications/finance/accounting/taxation/taxes/eu_distance_selling.html" help="Apply VAT of the EU country to which goods and services are delivered." invisible="'EU' not in company_country_group_codes">
                                <field name="module_l10n_eu_oss"/>
                            </setting>
                            <setting id="tax_exigibility" company_dependent="1" help="Allow to configure taxes using cash basis" title="Select this if the taxes should use cash basis, which will create an entry for such taxes on a given account during reconciliation." documentation="/applications/finance/accounting/taxation/taxes/cash_basis_taxes.html">
                                <field name="tax_exigibility"/>
                                <div class="content-group" invisible="not tax_exigibility" groups="account.group_account_user">
                                    <div class="row mt16">
                                        <label for="tax_cash_basis_journal_id" class="col-lg-3 o_light_label"/>
                                        <field name="tax_cash_basis_journal_id"/>
                                    </div>
                                    <div class="row mt16">
                                        <label for="account_cash_basis_base_account_id" class="col-lg-3 o_light_label"/>
                                        <field name="account_cash_basis_base_account_id"/>
                                    </div>
                                </div>
                            </setting>
                            <setting id="tax_fiscal_country_234" string="Fiscal Country" company_dependent="1" help="Domestic country of your accounting">
                                <field name="account_fiscal_country_id" options="{'no_create': True, 'no_open': True}"/>
                            </setting>
                        </block>
                        <block title="Currencies" name="main_currency_setting_container">
                            <setting id="main_currency" string="Main Currency" company_dependent="1" help="Main currency of your company" documentation="/applications/finance/accounting/others/multi_currency.html">
                                <div class="content-group">
                                    <div class="row mt16">
                                        <label for="currency_id" class="col-lg-3 o_light_label"/>
                                        <field name="currency_id" options="{'no_create_edit': True, 'no_open': True}" context="{'active_test': False}"/>
                                        <field name="group_multi_currency" invisible="1"/>
                                    </div>
                                    <div class="mt8">
                                        <button type="action" name="66" string="Currencies" class="btn-link" icon="oi-arrow-right"/>
                                    </div>
                                </div>
                            </setting>
                            <setting id="update_exchange_rates" invisible="not group_multi_currency" help="Update exchange rates automatically" documentation="/applications/finance/accounting/others/multi_currency.html">
                                <field name="module_currency_rate_live" widget="upgrade_boolean"/>
                            </setting>
                        </block>
                        <block title="Customer Invoices" id="invoicing_settings">
                            <setting id="send_invoices_followups" help="Send invoices and payment follow-ups by post" documentation="/applications/finance/accounting/receivables/customer_invoices/snailmail.html">
                                <field name="module_snailmail_account"/>
                            </setting>
                            <setting id="invoice_delivery_addresses" documentation="/applications/sales/sales/send_quotations/different_addresses.html" help="Select specific invoice and delivery addresses">
                                <field name="group_sale_delivery_address"/>
                            </setting>
                            <setting id="smallest_coinage_currency" help="Define the smallest coinage of the currency used to pay by cash" documentation="/applications/finance/accounting/receivables/customer_invoices/cash_rounding.html">
                                <field name="group_cash_rounding"/>
                                <div class="mt8">
                                    <button name="342" icon="oi-arrow-right" type="action" string="Cash Roundings" class="btn-link" invisible="not group_cash_rounding"/>
                                </div>
                            </setting>
                            <setting id="intrastat_statistics" help="Collect information and produce statistics on the trade in goods in Europe with intrastat" documentation="/applications/finance/accounting/reporting/declarations/intrastat.html" invisible="'EU' not in company_country_group_codes">
                                <field name="module_account_intrastat" widget="upgrade_boolean"/>
                            </setting>
                            <setting id="default_incoterm" string="Default Incoterm" help="Default Incoterm of your company">
                                <field name="incoterm_id"/>
                            </setting>
                            <setting id="show_sale_receipts" help="Activate to create sale receipt">
                                <field name="show_sale_receipts"/>
                            </setting>
                            <setting id="use_invoice_terms" company_dependent="1" help="Add your terms &amp; conditions at the bottom of invoices/orders/quotations">
                                <field name="use_invoice_terms"/>
                                <div class="content-group" invisible="not use_invoice_terms">
                                    <div class="mt16">
                                        <field name="terms_type" class="o_light_label" widget="radio"/>
                                        <div>
                                            <field name="invoice_terms" invisible="terms_type == 'html'" class="oe_account_terms mt-5 w-100" placeholder="Insert your terms &amp; conditions here..."/>
                                        </div>
                                        <div class="mt8" invisible="terms_type != 'html'">
                                            <button name="action_update_terms" icon="oi-arrow-right" type="object" string="Update Terms" class="btn-link"/>
                                        </div>
                                        <field name="preview_ready" invisible="1"/>
                                        <div class="mt4 ms-1" invisible="not preview_ready">
                                            <a class="btn-link" href="/terms" role="button">
                                                <i class="oi oi-arrow-right"/>
                                                Preview
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </setting>
                            <setting company_dependent="1" help="Trigger alerts when creating Invoices and Sales Orders for Partners with a Total Receivable amount exceeding a limit.                                      Set a value greater than 0.0 to activate a credit limit check">
                                <field name="account_use_credit_limit"/>
                                <div class="content-group mt-2" invisible="not account_use_credit_limit">
                                    <div class="row">
                                        <label for="account_default_credit_limit" class="col-lg-4 o_light_label"/>
                                        <field name="account_default_credit_limit"/>
                                    </div>
                                </div>
                            </setting>
                            <setting id="total_amount_words" company_dependent="1" help="Display the total amount of an invoice in letters">
                                <field name="display_invoice_amount_total_words"/>
                            </setting>
                            <setting id="display_invoice_tax_company_currency" company_dependent="1" help="Taxes are also displayed in local currency on invoices">
                                <field name="display_invoice_tax_company_currency"/>
                            </setting>
                        </block>
                        <block title="Units &amp; Packagings">
                            <setting id="account_uom" help="Sell and purchase products in different units of measure or packagings">
                                <field name="group_uom"/>
                                <div class="content-group" invisible="not group_uom">
                                    <button name="203" icon="oi-arrow-right" type="action" string="Units &amp; Packagings" class="btn-link"/>
                                </div>
                            </setting>
                        </block>
                        <block title="Customer Payments" id="pay_invoice_online_setting_container">
                            <setting help="Let your customers pay their invoices online" documentation="/applications/finance/accounting/receivables/customer_payments/online_payment.html">
                                <field name="module_account_payment"/>
                                <div class="mt-3 d-flex" invisible="not module_account_payment">
                                    <field name="link_qr_code" string="Add QR-code link on PDF"/>
                                    <div>
                                        <label for="link_qr_code"/><br/>
                                    </div>
                                </div>
                            </setting>
                            <setting id="account_batch_payment" string="Batch Payments" help="Group payments into a single batch to ease the reconciliation process" documentation="/applications/finance/accounting/receivables/customer_payments/batch.html">
                                <field name="module_account_batch_payment" widget="upgrade_boolean"/>
                            </setting>
                            <setting id="collect_customer_payment" title="If you check this box, you will be able to collect payments using SEPA Direct Debit mandates." string="SEPA Direct Debit (SDD)" company_dependent="1" help="Collect customer payments in one-click using Euro SEPA Service" documentation="/applications/finance/accounting/receivables/customer_payments/batch_sdd.html" invisible="'SEPA' not in company_country_group_codes">
                                <field name="module_account_sepa_direct_debit" class="oe_inline" widget="upgrade_boolean"/>
                                <div class="content-group" invisible="not module_account_sepa_direct_debit">
                                    <div class="text-warning mt16 mb4">
                                        Save this page and come back here to set up the feature.
                                    </div>
                                </div>
                            </setting>
                            <setting id="qr_code_invoices" title="Add a QR-code to your invoices so that your customers can pay instantly with their mobile banking application." string="QR Codes" company_dependent="1" help="Add a payment QR-code to your invoices" documentation="/applications/finance/accounting/receivables/customer_invoices/epc_qr_code.html">
                                <field name="qr_code" class="oe_inline"/>
                            </setting>
                        </block>
                        <block title="Vendor Bills" id="account_vendor_bills">
                            <setting id="autopost_bills" help="Propose to validate bills automatically when AI accuracy is right 3 times in a row for a vendor.">
                                <field name="autopost_bills"/>
                            </setting>
                        </block>
                        <block title="Vendor Payments" id="print_vendor_checks_setting_container">
                            <setting id="print_checks" groups="account.group_account_user" string="Checks" company_dependent="1" help="Print checks to pay your vendors" documentation="/applications/finance/accounting/payables/pay/check.html">
                                <field name="module_account_check_printing"/>
                            </setting>
                            <setting id="sepa_payments" title="If you check this box, you will be able to register your payment using SEPA." company_dependent="1" help="Pay your bills in one-click using Euro SEPA Service" documentation="/applications/finance/accounting/payables/pay/sepa.html" invisible="'SEPA' not in company_country_group_codes">
                                <field name="module_account_iso20022" widget="upgrade_boolean"/>
                            </setting>
                        </block>

                        <block title="Digitization" id="account_digitalization">
                            <setting id="account_ocr_settings" help="Digitize your PDF or scanned documents with OCR and Artificial Intelligence" documentation="/applications/finance/accounting/payables/supplier_bills/invoice_digitization.html">
                                <field name="module_account_extract" widget="upgrade_boolean"/>
                                <div id="msg_invoice_extract" class="content-group" invisible="not module_account_extract">
                                    <div class="text-warning mt16 mb4">
                                        Save this page and come back here to set up the feature.
                                    </div>
                                </div>
                            </setting>
                        </block>

                        <t groups="account.group_account_user">
                            <block title="Default Accounts" id="default_accounts">
                                <setting invisible="not group_multi_currency" string="Exchange difference entries:">
                                    <div class="content-group">
                                        <div class="row mt8">
                                            <label for="currency_exchange_journal_id" class="col-lg-4 o_light_label" string="Journal"/>
                                            <field name="currency_exchange_journal_id"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="income_currency_exchange_account_id" string="Gain" class="col-lg-4 o_light_label"/>
                                            <field name="income_currency_exchange_account_id"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="expense_currency_exchange_account_id" string="Loss" class="col-lg-4 o_light_label"/>
                                            <field name="expense_currency_exchange_account_id"/>
                                        </div>
                                    </div>
                                </setting>
                                <setting id="post_bank_transactions_and_payments_setting" string="Bank transactions and payments:">
                                    <div class="content-group">
                                        <div class="row mt8">
                                            <label for="account_journal_suspense_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="account_journal_suspense_account_id"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="transfer_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="transfer_account_id"/>
                                        </div>
                                    </div>
                                </setting>
                                <setting string="Invoice line discounts:" title="If empty, the discount will be discounted directly on the income/expense account. If set, discount on invoices will be realized in separate accounts.">
                                    <div class="content-group">
                                        <div class="row mt8">
                                            <label for="account_discount_expense_allocation_id" class="col-lg-5 o_light_label" string="Customer Invoices"/>
                                            <field name="account_discount_expense_allocation_id" placeholder="Same Account as product"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="account_discount_income_allocation_id" class="col-lg-5 o_light_label" string="Vendor Bills"/>
                                            <field name="account_discount_income_allocation_id" placeholder="Same Account as product"/>
                                        </div>
                                    </div>
                                </setting>
                                <setting string="Early payment discounts:">
                                    <div class="content-group">
                                        <div class="row mt8">
                                            <label for="account_journal_early_pay_discount_gain_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="account_journal_early_pay_discount_gain_account_id"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="account_journal_early_pay_discount_loss_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="account_journal_early_pay_discount_loss_account_id"/>
                                        </div>
                                    </div>
                                </setting>
                                <setting id="product_accounts" string="Product Accounts:">
                                    <div class="content-group">
                                        <div class="row mt8">
                                            <label for="income_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="income_account_id"/>
                                        </div>
                                        <div class="row mt8">
                                            <label for="expense_account_id" class="col-lg-5 o_light_label"/>
                                            <field name="expense_account_id"/>
                                        </div>
                                    </div>
                                </setting>
                            </block>
                        </t>

                        <t groups="account.group_account_user">
                            <block title="Bank &amp; Cash" id="bank_cash">
                                <setting title="Once installed, set 'Bank Feeds' to 'File Import' in bank account settings.This adds a button to import from the Accounting dashboard." string="QIF Import" help="Import your bank statements in QIF">
                                    <field name="module_account_bank_statement_import_qif" widget="upgrade_boolean"/>
                                </setting>
                            </block>
                        </t>

                        <t groups="account.group_account_user">
                            <block title="Fiscal Periods" id="accounting_reports">
                                <setting id="fiscalyear" invisible="1" groups="account.group_account_user"/>
                                <setting id="dynamic_report" groups="account.group_account_user" help="Navigate easily through reports and see what is behind the numbers">
                                    <field name="module_account_reports" widget="upgrade_boolean"/>
                                </setting>
                            </block>
                        </t>
                        <block title="Analytics" id="analytic" groups="account.group_account_user">
                            <setting id="track_costs_revenues" title="Allows you to use the analytic accounting." groups="account.group_account_user" help="Track costs &amp; revenues by project, department, etc" documentation="/applications/finance/accounting/others/analytic_accounting.html">
                                <field name="group_analytic_accounting"/>
                            </setting>
                            <setting id="account_budget" title="This allows accountants to manage analytic and crossovered budgets. Once the master budgets and the budgets are defined, the project managers can set the planned amount on each analytic account." groups="account.group_account_user" help="Use budgets to compare actual with expected revenues and costs" documentation="/applications/finance/accounting/others/adviser/budget.html">
                                <field name="module_account_budget" widget="upgrade_boolean"/>
                            </setting>
                            <setting id="monitor_product_margins" string="Margin Analysis" help="Monitor your product margins from invoices" groups="account.group_account_user">
                                <field name="module_product_margin"/>
                            </setting>
                        </block>
                        <block title="Reporting" id="account_reports_settings" groups="account.group_account_user" invisible="not module_account_reports">
                            <setting string="Restrictive Audit Trail" company_dependent="1" invisible="force_restrictive_audit_trail" help="Log changes to posted journal entries immutably">
                                <field name="restrictive_audit_trail"/>
                            </setting>
                        </block>
                        <field name="is_account_peppol_eligible" invisible="1"/>
                        <block title="PEPPOL Electronic Invoicing" id="peppol" invisible="not is_account_peppol_eligible">
                            <div id="account_peppol_install" class="col-12 col-lg-12 o_setting_box">
                                <div class="o_setting_left_pane">
                                    <field name="module_account_peppol" readonly="False"/>
                                </div>
                                <div class="o_setting_right_pane">
                                    <label for="module_account_peppol" string="Enable PEPPOL"/>
                                    <div class="text-muted">
                                        Allow sending and receiving invoices through the PEPPOL network
                                    </div>
                                </div>
                            </div>
                        </block>
                        <block title="Storno Accounting" id="storno" groups="account.group_account_user">
                            <setting id="enable_storno_accounting" company_dependent="1" help="Use negative numbers to reverse original entries">
                                <field name="account_storno"/>
                            </setting>
                        </block>
                        <block title="Accounting Firms mode" id="quick_edit_mode">
                            <div class="text-muted">
                                <p style="margin-bottom: 0">Accounting firm mode will change invoice/bill encoding:</p>
                                <p style="margin-bottom: 0"> - The document's sequence becomes editable on all documents.</p>
                                <p style="margin-bottom: 0"> - A new field « Total (tax inc.) » to speed up and control the encoding by automating line creation with the right account &amp; tax.</p>
                            </div>
                            <setting company_dependent="1">
                                <field name="quick_edit_mode" placeholder="Disabled"/>
                            </setting>
                        </block>
                    </app>
                </xpath>
            