Files
odoo_source/addons/im_livechat
Nasreddin Boulif (bon) a382e64ac1 [FIX] im_livechat: display chatbot in website or user language
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

closes odoo/odoo#126594

X-original-commit: cb9c003700d2d8eb3be326260bae5fa5e599b89c
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
2023-06-30 14:25:19 +02:00
..
…
2023-06-12 22:39:26 +02:00