[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:
ioFilippo
2021-03-15 15:06:10 +00:00
committed by Martin Trigaux
parent 3cbed4d4f6
commit 0a3c05d18e
+1 -1
View File
@@ -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)