diff options
| author | ioFilippo <filippo.iovine@rapsodoo.com> | 2021-03-05 16:48:20 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2021-03-15 12:20:13 +0000 |
| commit | 44624f5d51a266c4fc37644d3fc36b810e722ee4 (patch) | |
| tree | d559b9cdbb2cdfc602ed6bb205beb85bd5600578 /odoo/modules | |
| parent | b0023e2afa9a08b0d60e54b335f31d07018abecd (diff) | |
[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#67401
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/modules')
| -rw-r--r-- | odoo/modules/loading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 56dbb0639a6..98767c2b273 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) |
