diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-03-19 14:15:46 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-04-30 15:45:58 +0000 |
| commit | 5f7de6226bc2c1da221bd2062631cd08689941da (patch) | |
| tree | a94a2dc54ce4536b7cee9d9fff2069093958b01e /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | e72c6093064b0321743bb1d24a705718d32d0820 (diff) | |
[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
closes odoo/odoo#50498
X-original-commit: 998987f8ee148235f4025eb97a424e838ac6fc9f
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
