Skip to content
Snippets Groups Projects
Commit 16e6907e authored by Jason Van Malder's avatar Jason Van Malder Committed by Nicolas Lempereur
Browse files

[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: 50c2ecbc
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 358f6330
No related branches found
No related tags found
No related merge requests found
......@@ -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("|")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment