From 38f37fe4425e01bcc1986502cfaacfa2af0d338d Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Fri, 1 Oct 2021 08:33:07 +0000 Subject: [PATCH] [FIX] mail: fix live chat history command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2622450 closes odoo/odoo#77605 X-original-commit: 1a4f4874feef1fced5430de5ee3918b79bbe512d Signed-off-by: Sébastien Theys (seb) --- addons/im_livechat/models/mail_channel.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/im_livechat/models/mail_channel.py b/addons/im_livechat/models/mail_channel.py index d12f52a7b53..dbce303e834 100644 --- a/addons/im_livechat/models/mail_channel.py +++ b/addons/im_livechat/models/mail_channel.py @@ -142,12 +142,8 @@ class MailChannel(models.Model): message_body = _('No history found') if page_history: html_links = ['
  • %s
  • ' % (page, page) for page in page_history] - message_body = '
      %s
    ' % (''.join(html_links)) - self.env['bus.bus'].sendone((self._cr.dbname, 'res.partner', pid), { - 'body': message_body, - 'channel_ids': self.ids, - 'info': 'transient_message', - }) + message_body = '' % (''.join(html_links)) + self._send_transient_message(self.env['res.partner'].browse(pid), message_body) def _get_visitor_leave_message(self, operator=False, cancel=False): return _('Visitor has left the conversation.')