From 16e6907efa55de31292ca31765357bc3e6c01c3f Mon Sep 17 00:00:00 2001 From: Jason Van Malder Date: Tue, 26 Nov 2019 12:08:55 +0000 Subject: [PATCH] [FIX] http_routing, portal: fix web translations not loaded Reproduce the issue - Install eCommerce & Sales - Create a quotation - Preview - Switch to french on the website page - Click on "Signer & Payer" There is a lot of things not translated. Cause On the website, the route `/website/translations` is called. The route calls a method `_get_translation_frontend_modules_domain` which teturn a domain to list the domain adding web-translations and dynamic resources that may be used frontend views. The missing translations are in the web module and the module is not loaded by the method. This commit adds the `web` module to the domain and a missing translation for the portal module OPW-2120397 closes odoo/odoo#41072 X-original-commit: 50c2ecbc9ef0e446af0a1d4010ec1d923aa41bec Signed-off-by: Nicolas Lempereur (nle) --- addons/http_routing/models/ir_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/http_routing/models/ir_http.py b/addons/http_routing/models/ir_http.py index 6f1078a4995..988a50000cc 100644 --- a/addons/http_routing/models/ir_http.py +++ b/addons/http_routing/models/ir_http.py @@ -323,7 +323,7 @@ class IrHttp(models.AbstractModel): """ Return a domain to list the domain adding web-translations and dynamic resources that may be used frontend views """ - return [] + return [('name', '=', 'web')] bots = "bot|crawl|slurp|spider|curl|wget|facebookexternalhit".split("|")