projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1397b7a
)
Overwrite translation on module update if option is set
author
Yann Papouin
<yann.papouin@gmail.com>
Fri, 20 Jun 2014 09:48:18 +0000
(11:48 +0200)
committer
Guewen Baconnier
<guewen.baconnier@camptocamp.com>
Fri, 20 Jun 2014 09:48:18 +0000
(11:48 +0200)
Launchpad bug: https://bugs.launchpad.net/ocb-server/+bug/1319285
openerp/modules/loading.py
patch
|
blob
|
history
diff --git
a/openerp/modules/loading.py
b/openerp/modules/loading.py
index
311e00b
..
6112ef0
100644
(file)
--- a/
openerp/modules/loading.py
+++ b/
openerp/modules/loading.py
@@
-213,7
+213,7
@@
def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules=
# 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'):