From 0a3c05d18e14b3cb56a4a3229d15b58d8ffab0ab Mon Sep 17 00:00:00 2001 From: ioFilippo Date: Fri, 5 Mar 2021 16:48:20 +0000 Subject: [PATCH] [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) --- odoo/modules/loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index eb300bcc0eb..6a92f735ded 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -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)