summaryrefslogtreecommitdiff
path: root/addons/website_livechat/models/im_livechat_channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_livechat/models/im_livechat_channel.py')
-rw-r--r--addons/website_livechat/models/im_livechat_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_livechat/models/im_livechat_channel.py b/addons/website_livechat/models/im_livechat_channel.py
index db41f626a83..dd083c6e104 100644
--- a/addons/website_livechat/models/im_livechat_channel.py
+++ b/addons/website_livechat/models/im_livechat_channel.py
@@ -20,6 +20,6 @@ class ImLivechatChannel(models.Model):
# As chat requested by the visitor, delete the chat requested by an operator if any to avoid conflicts between two flows
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_request_session(_('has started a conversation with %s. The chat request has been canceled.') % operator.name)
+ mail_channel.close_livechat_request_session(type='cancel', speaking_with=operator.name)
return mail_channel_vals