Steps to reproduce:
- Install the module `crm_livechat`
- Activate another language (e.g. fr_FR)
- Open a new incognito window and go to the website
- On website, switch to the activated language
- Open contact page
- Open the chatbot
Issue:
The chatbot is displayed in `en_US`.
Cause:
The chatbot is displayed in the current user language (not website
language).
Public user have by default `en_US` as language.
Solution:
Retrieve the chatbot with the website activated language if set,
otherwise, retrieve the chatbot in the user language.
Fallback on `en_US`.
opw-3284807
closesodoo/odoo#126594
X-original-commit: cb9c003700d2d8eb3be326260bae5fa5e599b89c
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>