Files
odoo_source/addons/l10n_cr/data/l10n_cr_chart_data.xml
T
Nicolas (vin) 623d3bfe0f [IMP] account: ensure account's code compatibility with reportalypse
The new account report engine requires account codes to only contain
alphanumeric characters and dots.
(see https://github.com/odoo/enterprise/blob/f435654f70f3d6a1fec7fa696945f2c0eb9a7056/account_reports/models/account_report.py#L2523)
Add two new constrains on account_account and account_account_template
to block the creation of accounts with codes that would cause issues
in account reports.

Task id #2960486

closes odoo/odoo#98900

Related: odoo/enterprise#30841
Related: odoo/upgrade#3824
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2022-08-31 16:05:10 +02:00

14 lines
563 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Account Chart Template -->
<record id="account_chart_template_0" model="account.chart.template">
<field name="name">Costa Rica - Company 0</field>
<field name="bank_account_code_prefix">0.1112</field>
<field name="cash_account_code_prefix">0.1111</field>
<field name="transfer_account_code_prefix">0.1114</field>
<field name="currency_id" ref="base.CRC"/>
<field name="country_id" ref="base.cr"/>
</record>
</odoo>