[FIX] modules: apply override translation option
Translation overwriting was not working when forced by command line arg --i18n-overwrite This is due to the change of signature of the method, no longer relying on the context Fixes odoo/odoo#67419 closes odoo/odoo#67873 X-original-commit: 44624f5d51a266c4fc37644d3fc36b810e722ee4 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
committed by
Martin Trigaux
parent
3cbed4d4f6
commit
0a3c05d18e
@@ -227,7 +227,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True,
|
||||
|
||||
# Update translations for all installed languages
|
||||
overwrite = odoo.tools.config["overwrite_existing_translations"]
|
||||
module.with_context(overwrite=overwrite)._update_translations()
|
||||
module._update_translations(overwrite=overwrite)
|
||||
|
||||
if package.name is not None:
|
||||
registry._init_modules.add(package.name)
|
||||
|
||||
Reference in New Issue
Block a user