-
- Downloads
[FIX] website: menu translation on website
Currently, the menu are only translated for installed language when we
create a new website.
When we create a new menu (eg. by installing a module) or install a new
language we will only translate menu without website_id set, so the menu
are not translated.
With this changeset, we try to match translation of menu without
website_id to menu with website_id when translations are updated:
- when a language is installed/updated
- when a module is installed/updated
Without the changeset, the added test would fail with:
- "Menu in english" != "Menu en français"
Load translation add missing translation from template menu
- "Menu in french" != "Menu en français"
Load translation with overwriting update existing menu from template
fixes #43365
opw-2209864
closes #48031
Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
addons/website/models/ir_translation.py
0 → 100644
Please register or sign in to comment