-
- Downloads
[FIX] website: use default website lang for configurator
The configurator introduced at [1] uses a frontend controller to display its content. However this results in inconsistent language translation as the python code uses the users's language but the localization services uses the frontend's language when on a frontend page. Steps to reproduce: - Create a database with the only language being french - Install website - In the configurator, all the pages will be in french except "Pages and Features" With this commit, the language for the configurator will always be the language of the website it's configuring. A test also make sure that this is the current behavior. [1]: https://github.com/odoo/odoo/commit/e8a5af2e28a4724f86783746706cb59175f086bf task-2687416 closes odoo/odoo#80055 Signed-off-by:Romain Derie (rde) <rde@odoo.com> Co-authored-by:
JKE-be <jke@odoo.com>
Showing
- addons/test_website_modules/tests/test_configurator.py 2 additions, 37 deletionsaddons/test_website_modules/tests/test_configurator.py
- addons/website/controllers/main.py 4 additions, 3 deletionsaddons/website/controllers/main.py
- addons/website/models/website.py 3 additions, 3 deletionsaddons/website/models/website.py
- addons/website/static/src/components/configurator/configurator.js 12 additions, 12 deletions...ebsite/static/src/components/configurator/configurator.js
- addons/website/static/tests/tours/configurator_translation.js 62 additions, 0 deletions...ns/website/static/tests/tours/configurator_translation.js
- addons/website/tests/__init__.py 1 addition, 0 deletionsaddons/website/tests/__init__.py
- addons/website/tests/test_configurator.py 68 additions, 0 deletionsaddons/website/tests/test_configurator.py
Loading
Please register or sign in to comment