From 15fd45aa5a582c9670770f0616f0167cfc18d915 Mon Sep 17 00:00:00 2001 From: Parthiv Patel Date: Mon, 27 Aug 2018 06:10:02 +0000 Subject: [PATCH] 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 --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 8e67d2da..7695506e 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -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')):