Skip to content
Snippets Groups Projects
Commit 36866412 authored by Florent de Labarre's avatar Florent de Labarre
Browse files

[FIX] website_livechat: error during closing livechat

During closing a livechat session an error occur :
_get_visitor_leave_message() got an unexpected keyword argument 'speaking_with'
Because argument 'speaking_with' is pass in this method https://github.com/odoo/odoo/blob/14.0/addons/im_livechat/models/mail_channel.py#L182

, it should be operator.

closes odoo/odoo#70630

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 20349921
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,6 @@ class ImLivechatChannel(models.Model):
# TODO DBE : Move this into the proper method (open or init mail channel)
chat_request_channel = self.env['mail.channel'].sudo().search([('livechat_visitor_id', '=', visitor_sudo.id), ('livechat_active', '=', True)])
for mail_channel in chat_request_channel:
mail_channel._close_livechat_session(cancel=True, speaking_with=operator.name)
mail_channel._close_livechat_session(cancel=True, operator=operator.name)
return mail_channel_vals
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment