odoo
odoo copied to clipboard
[FIX] web: fix menus and user language mismatch
Steps to reproduce the issue:
- Have 2 different authenticated browser (one as
adminand one asdemo) - With the
demo browser, change your own language to French -> Reload the main menu page - With the
admin browser, update the demo user language from the Settings to English - Reload the page on the
demo browser, the menus will have stayed in French while the rest of the page is translated in English
Details:
- Only the first query after the following step will have an issue, the problem corrects itself on the second refresh.
- Could not reproduce on the runbot but could do it locally and on Odoo.SH (in 16.0) and on
odoo.comfree database (18.0).
This issue was already discussed more than a year ago (https://github.com/odoo/odoo/pull/110207) but was finally closed without being merged. The problem can now be fully reproduced while previously, it was a bit blurry.
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
