c9cfd25e3c11d42b920a8dd6e3a17690cb44afd2
This PR fixes two translation issues when launching a chat bot with a different language than the user's: 1. Wrong translation for `question_selection` answers 2. Wrong translation for the `question_email` answers 1. The answers to a `question_selection` could be mistranslated because the lang is missing from the context when `post_welcome_steps` is called`. As a result, the `discuss.channel/new_message` notification would have the wrong answers format. Steps to reproduce the issue: - Go to the test chat bot test page - Switch the website language to the one that is not used by the user. - Check the return result of `post_welcome_steps`: answers are in the correct language. - Check the corresponding `discuss.channel/new_message` notification received through the websocket: the language is the one of the user. 2. The chat bot language is not specified when calling the `validate_email` route so the lang is the one of the user by default. Steps to reproduce the issue: - Go to the chat bot test page - Activate another language than the one of the user - Select "I have a pricing question" with no operator available - Enter an invalid email - The answer is in the user's language while it should not opw-3862125 closes odoo/odoo#162655 Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%