From 27ff79bf37a1fd93af757306afabc08aaa87d2a2 Mon Sep 17 00:00:00 2001 From: "Laurent Desausoi (lade)" Date: Mon, 16 May 2022 13:08:19 +0000 Subject: [PATCH] [FIX] http_routing, web: fix translation on additional modules Translations from non-standard modules on the website are not properly loaded, thus no translation is done even though translated terms are valid (e.g. signing a document shared). Step to reproduce the issue: 1) Install the sign module & Install French language (or any execpt English) 2) Disable the English language 3) Go to Sign and Share on document 4) Open the link You will see that the "Click to start" is not translated. Some other strings too. Solution: The issue appeared since commit [1]. In there, we changed the argument key for additional modules while it was not changed on the backend resulting in the module translation not loaded. Furthermore, in the backend the additional modules were appended as if they were a list while it is a string. [1]: https://github.com/odoo/odoo/commit/8cc066173dfb61bd95b8e1f0716f71f4e251810a opw-2842699 closes odoo/odoo#92546 X-original-commit: b4eaaaa567ea306e6e86d133c3a805145d9ea4d0 Related: odoo/enterprise#27906 Signed-off-by: Romain Derie (rde) Signed-off-by: Desausoi Laurent (lade) --- addons/http_routing/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/http_routing/controllers/main.py b/addons/http_routing/controllers/main.py index b2677ec78a6..351d031f48d 100644 --- a/addons/http_routing/controllers/main.py +++ b/addons/http_routing/controllers/main.py @@ -14,7 +14,7 @@ class Routing(Home): IrHttp = request.env['ir.http'].sudo() modules = IrHttp.get_translation_frontend_modules() if mods: - modules += mods + modules += mods.split(',') return WebClient().translations(unique, mods=','.join(modules), lang=lang)