diff options
| author | Florent de Labarre <florent.mirieu@gmail.com> | 2021-05-11 06:27:33 +0000 |
|---|---|---|
| committer | Florent de Labarre <florent.mirieu@gmail.com> | 2021-05-11 06:27:33 +0000 |
| commit | 36866412483af80da812a38842e6df35b232190a (patch) | |
| tree | 3635ce92ef6c243a0fd62f8c34ba9749e7b3cf47 /addons/website_livechat | |
| parent | 203499216c657631b39b6ddc9560a1daaf20a862 (diff) | |
[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) <tde@openerp.com>
Diffstat (limited to 'addons/website_livechat')
| -rw-r--r-- | addons/website_livechat/models/im_livechat_channel.py | 2 |
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 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 |
