Monday, June 3, 2024
1 change · 17.0
Resolved issues and error corrections
This fix resolves a critical error that occurred when a livechat visitor without an account attempted to escalate from a chatbot to a human operator. Previously, the system would crash with an attribute error. After this fix, the fallback to a human operator now works smoothly, ensuring visitors can always reach support when needed.
Original PR description
Description of the issue/feature this PR addresses: Livechat is set up with a Chatbot with a fallback to an operator. When a visitor visits a website with the Livechat and the visitor is not connected to an account, when falling back to the operator, an error occurs : `AttributeError: 'discuss.channel' object has no attribute 'livechat_visitor_id'` Current behavior before PR: When a visitor visits a website with the Livechat and the visitor is not connected to an account, when falling back to the operator, an error occurs : `AttributeError: 'discuss.channel' object has no attribute 'livechat_visitor_id'` Desired behavior after PR is merged: The chatbot falls back to the human operator. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr