diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-04-06 15:23:09 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-04-09 09:22:11 +0200 |
| commit | 6ee5b6fd6fe62db0c3bf8e6d5d7fb8052724589a (patch) | |
| tree | d0dc130ff53bdc7a068b54f4428098624ac2c1a1 /odoo/addons/base/module/module.py | |
| parent | 1735ac582c4640824d8ca3f635403f8ae3694662 (diff) | |
[FIX] base: update module list without translating fields
Install a database in some other language than en_US
In debug mode and in the app list viewer,
you'll see that the apps field are translated into your language
Then do an "Update App List"
Reload your page
Before this commit, the Apps' field lost their translation
This was because when checking for any updated data for known modules,
the ORM fetched the translation automatically, and compared the old (translated)
value with the new (English) value from the manifest
After this commit, This operation doesn't make the translations to be lost,
because only english values are compared
OPW 1832796
closes #23910
closes #24091
Diffstat (limited to 'odoo/addons/base/module/module.py')
| -rw-r--r-- | odoo/addons/base/module/module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/module/module.py b/odoo/addons/base/module/module.py index fb84aef7149..5208f0c4e35 100644 --- a/odoo/addons/base/module/module.py +++ b/odoo/addons/base/module/module.py @@ -599,7 +599,7 @@ class Module(models.Model): res = [0, 0] # [update, add] default_version = modules.adapt_version('1.0') - known_mods = self.search([]) + known_mods = self.with_context(lang=None).search([]) known_mods_names = {mod.name: mod for mod in known_mods} # iterate through detected modules and update/create them in db |
