summaryrefslogtreecommitdiff
path: root/addons/l10n_no
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2020-06-11 09:02:46 +0000
committerDenis Ledoux <dle@odoo.com>2020-06-11 15:13:19 +0000
commit0f966196fb5e9de26d437f3435325c45cd9e8d7c (patch)
tree8033c38d47ec0da16a9db7aa73cc2e63d676c9d7 /addons/l10n_no
parenta6c43e0366473f9e920a35d95f1703ba58a20fef (diff)
[FIX] l10n_*: no chart template should be set to noupdate
In a general manner, the chart templates should not be set to noupdate, that way, if a new company starts in an existing database, it starts with an up-to-date chart of accounts. For instance, if the chart of template is not updated from 12.0 to 13.0, the `default_pos_receivable_account_id` is not added in the chart template, and when a new company is created, the default pos receivable account is not set on the company. Besides, the field `res.company``account_default_pos_receivable_account_id` is not displayed on any form view, whether or not the full accounting is installed, so we must especially pay attention this default account is well set from start, as the user as no opportunity to correct this by himself. In addition, in upgrade scripts, the default pos receivable account on the chart template is used to correctly set the pos receivable account on the company and on the pos payment methods, so it must be well set for the upgrade script to do its job correctly. Technically, it means, without this revision, the fields: - `account.chart.template``default_pos_receivable_account_id`, - `res.company``account_default_pos_receivable_account_id`, - `pos.payment.method``receivable_account_id` were not filled properly on upgrade, causing critical issues in the accounting entries on pos session closing. Related to #52786 Related to odoo/upgrade@ccfd2371ef89ae67dc9bd68bb0d02f2a440551a2 closes odoo/odoo#52870 X-original-commit: 3258ba015ff75b7c176d83a44261d24ebfcc26de Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'addons/l10n_no')
-rw-r--r--addons/l10n_no/data/account_chart_template_data.xml2
-rw-r--r--addons/l10n_no/data/l10n_no_chart_data.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_no/data/account_chart_template_data.xml b/addons/l10n_no/data/account_chart_template_data.xml
index 3f3a5c7f77a..84db3314247 100644
--- a/addons/l10n_no/data/account_chart_template_data.xml
+++ b/addons/l10n_no/data/account_chart_template_data.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
- <data noupdate="1">
+ <data>
<record id="no_chart_template" model="account.chart.template">
<field name="property_account_receivable_id" ref="chart1500"/>
<field name="property_account_payable_id" ref="chart2400"/>
diff --git a/addons/l10n_no/data/l10n_no_chart_data.xml b/addons/l10n_no/data/l10n_no_chart_data.xml
index cbc3d55993b..f4194f08793 100644
--- a/addons/l10n_no/data/l10n_no_chart_data.xml
+++ b/addons/l10n_no/data/l10n_no_chart_data.xml
@@ -2,7 +2,7 @@
<odoo>
<menuitem id="account_reports_no_statements_menu" name="Norway" parent="account.menu_finance_reports" sequence="0" groups="account.group_account_readonly"/>
- <data noupdate="1">
+ <data>
<menuitem id="account_reports_no_statements_menu" name="Norwegian Statements" parent="account.menu_finance_reports" sequence="0" groups="account.group_account_readonly"/>