Merge branch '11-translations' into '1.0'

FIX: load translations for web correctly

See merge request flectra-hq/flectra!137

(cherry picked from commit a3cf99f0a3b1099907282bca6ebcd1c83a162406)

eeef2fb7 FIX: load translations for web correctly
This commit is contained in:
Parthiv Patel 2018-08-27 06:10:02 +00:00
parent b9a01e453a
commit 15fd45aa5a

View File

@ -639,7 +639,7 @@ class WebClient(http.Controller):
translations_per_module = {}
messages = request.env['ir.translation'].sudo().search_read([
('module', 'in', mods), ('lang', '=', lang),
('comments', 'like', 'openerp-web'), ('value', '!=', False),
('comments', 'like', 'flectra-web'), ('value', '!=', False),
('value', '!=', '')],
['module', 'src', 'value', 'lang'], order='module')
for mod, msg_group in itertools.groupby(messages, key=operator.itemgetter('module')):