[FIX] l10n_*: missing load_translations in manifest post_init_hook

There is a code pattern in l10n modules
to create a post init hook method `load_translations` in `__init__.py`
and to add it in the `post_init_hook` of the module  manifest.

For the modules part of this revision,
the method `load_translations` was created as expected,
but then was missing in the `post_init_hook` key of the manifest,
therefore leading to the fact this `load_translations`
method was never called for these modules,
despite their `spoken_languages` were correctly
set in their charf of account template.

closes odoo/odoo#108254

Related: odoo/design-themes#631
Related: odoo/enterprise#35084
Related: odoo/upgrade#4144
Signed-off-by: Christophe Simonis <chs@odoo.com>
This commit is contained in:
Denis Ledoux
2023-02-01 10:25:01 +01:00
parent b4a7996e96
commit fdf2f0c095
6 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
def load_translations(env):
env.ref('l10n_hr.l10n_hr_chart_template').process_coa_translations()
env.ref('l10n_hr.l10n_hr_euro_chart_template').process_coa_translations()
+1
View File
@@ -33,5 +33,6 @@
'demo': [
'demo/demo_company.xml',
],
'post_init_hook': 'load_translations',
'license': 'LGPL-3',
}
+1
View File
@@ -36,4 +36,5 @@ Italian accounting chart and localization.
'demo/demo_company.xml',
],
'license': 'LGPL-3',
'post_init_hook': 'load_translations',
}
+1
View File
@@ -36,4 +36,5 @@
'demo/demo_company.xml',
'demo/demo_partner.xml',
],
'post_init_hook': 'load_translations',
}
+1
View File
@@ -41,5 +41,6 @@ Romanian accounting chart and localization.
'demo': [
'demo/demo_company.xml',
],
'post_init_hook': 'load_translations',
'license': 'LGPL-3',
}
+1
View File
@@ -27,5 +27,6 @@
"views/report_invoice.xml",
],
"demo": ["demo/demo_company.xml"],
'post_init_hook': 'load_translations',
"license": "LGPL-3",
}