Module update does not overwrite existing therms when i18n-overwrite is set

Bug #1319285 reported by Yann Papouin on 2014-05-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned
OpenERP Community Backports (Server)
Status tracked in 7.0
6.1
Undecided
Unassigned
7.0
Undecided
Unassigned

Bug Description

If the server is started with the "--i18n-overwrite" option, it is entirely ignored when updating module in these two cases:
- update from command line
- update from module view

In "tools/config.py", following is stated:
"the i18n-overwrite option cannot be used without the i18n-import option or without the update option"

I made a fix in _load_data in "modules/loading.py" where a context is created with the overwite option (was None before):
# Update translations for all installed languages
modobj.update_translations(cr, SUPERUSER_ID, [module_id], None, {'overwrite': openerp.tools.config["overwrite_existing_translations"]})

Related branches

description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers