[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) <nle@odoo.com>
This commit is contained in:
Jason Van Malder
2019-11-28 15:22:41 +00:00
committed by Nicolas Lempereur
parent 358f633028
commit 16e6907efa
+1 -1
View File
@@ -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("|")