Skip to content
Snippets Groups Projects
  • Nicolas Lempereur's avatar
    5f7de622
    [FIX] website: menu translation on website · 5f7de622
    Nicolas Lempereur authored
    
    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: default avatarNicolas Lempereur (nle) <nle@odoo.com>
    Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
    5f7de622
    History
    [FIX] website: menu translation on website
    Nicolas Lempereur authored
    
    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: default avatarNicolas Lempereur (nle) <nle@odoo.com>
    Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>