diff --git a/addons/website_livechat/models/im_livechat_channel.py b/addons/website_livechat/models/im_livechat_channel.py index 3b805b80b7cd0c842b6276d11a903013773909af..fe4b46b02a03fd52b65608db92efd752dc94f15e 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