Files
odoo_source/addons/website_livechat/controllers
Maruan Aguerdouh (magm) 1274eb4c94 [FIX] website_livechat: fix traceback when giving review without any operators availables
Steps to reproduce:

- Install Discuss and Livechat.
- Open a window without logging in and trigger the Livechat.
- Select the "I have a pricing question" option, and it should tell you
that there are no operators availables.
- When it asks you for your email just type anything, and try to close
the window.
- When you have pressed on the "x" it should ask you to review the
service you had, select any of it and close the window.
- Now log into the database and go to the livechat app and go to the
livechat channel where we did the review, and inside it try to "Go to
Website".

Issue:

Traceback will be raised, caused of the review we have done which is not
asigned to anyone in the support team.

Solution:

When can handle this, and just still take into account the review we
just had (current fix). Or we should not let the user to review if we
don't have an agent to be reviewed.

opw-3143564

closes odoo/odoo#115242

X-original-commit: edc20c1d12225df9a5e169bf13abfb5a796f5236
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2023-03-15 09:54:56 +01:00
..
…