From 36866412483af80da812a38842e6df35b232190a Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Tue, 11 May 2021 06:27:33 +0000 Subject: [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: Thibault Delavallee (tde) --- addons/website_livechat/models/im_livechat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website_livechat') diff --git a/addons/website_livechat/models/im_livechat_channel.py b/addons/website_livechat/models/im_livechat_channel.py index 3b805b80b7c..fe4b46b02a0 100644 --- a/addons/website_livechat/models/im_livechat_channel.py +++ b/addons/website_livechat/models/im_livechat_channel.py @@ -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 -- cgit v1.2.3