openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #06717
[Merge] lp:~yann-papouin/ocb-server/7.0-bug-1319285-translation-overwrite-module-update into lp:ocb-server
Yann Papouin has proposed merging lp:~yann-papouin/ocb-server/7.0-bug-1319285-translation-overwrite-module-update into lp:ocb-server.
Requested reviews:
OpenERP Community Backports (ocb)
Related bugs:
Bug #1319285 in OpenERP Community Backports (Server): "Module update does not overwrite existing therms when i18n-overwrite is set"
https://bugs.launchpad.net/ocb-server/+bug/1319285
For more details, see:
https://code.launchpad.net/~yann-papouin/ocb-server/7.0-bug-1319285-translation-overwrite-module-update/+merge/219468
Automatically derived from https://code.launchpad.net/~yann-papouin/openobject-server/7.0-bug-1319285-translation-overwrite-module-update for https://code.launchpad.net/~openerp/openobject-server/7.0.
--
https://code.launchpad.net/~yann-papouin/ocb-server/7.0-bug-1319285-translation-overwrite-module-update/+merge/219468
Your team OpenERP Community Backports is requested to review the proposed merge of lp:~yann-papouin/ocb-server/7.0-bug-1319285-translation-overwrite-module-update into lp:ocb-server.
=== modified file 'openerp/modules/loading.py'
--- openerp/modules/loading.py 2014-02-09 01:04:38 +0000
+++ openerp/modules/loading.py 2014-05-14 08:26:28 +0000
@@ -221,7 +221,7 @@
# Set new modules and dependencies
modobj.write(cr, SUPERUSER_ID, [module_id], {'state': 'installed', 'latest_version': ver})
# Update translations for all installed languages
- modobj.update_translations(cr, SUPERUSER_ID, [module_id], None)
+ modobj.update_translations(cr, SUPERUSER_ID, [module_id], None, {'overwrite': openerp.tools.config["overwrite_existing_translations"]})
package.state = 'installed'
for kind in ('init', 'demo', 'update'):
Follow ups