Merge branch 'cherry-pick-a3cf99f0' into 'master'

Merge branch '11-translations' into '1.0'

See merge request flectra-hq/flectra!138
This commit is contained in:
Parthiv Patel 2018-08-27 09:25:49 +00:00
commit aff4f04c88

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')):