From 3c14eee441fc9f56fb2c7f51820c0f77acfcbc76 Mon Sep 17 00:00:00 2001 From: Mansi Gandhi Date: Mon, 9 May 2016 18:50:22 +0530 Subject: [PATCH] [IMP] im_livechat: Clean no_content message for 'History' action --- addons/im_livechat/models/mail_channel.py | 6 ++++++ addons/im_livechat/views/mail_channel_views.xml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/addons/im_livechat/models/mail_channel.py b/addons/im_livechat/models/mail_channel.py index 8fb014f0b8f..b90f9e2e532 100644 --- a/addons/im_livechat/models/mail_channel.py +++ b/addons/im_livechat/models/mail_channel.py @@ -76,3 +76,9 @@ class MailChannel(models.Model): < ((now() at time zone 'UTC') - interval %s)""", ("%s hours" % hours,)) empty_channel_ids = [item['id'] for item in self.env.cr.dictfetchall()] self.browse(empty_channel_ids).unlink() + + @api.model + def get_empty_list_help(self, help): + if help: + return '%s

' % (help) + return super(MailChannel, self).get_empty_list_help(help) diff --git a/addons/im_livechat/views/mail_channel_views.xml b/addons/im_livechat/views/mail_channel_views.xml index aa881ef0761..edc085c80c8 100644 --- a/addons/im_livechat/views/mail_channel_views.xml +++ b/addons/im_livechat/views/mail_channel_views.xml @@ -84,6 +84,11 @@ [('livechat_channel_id', '!=', None)] {} + +

+ Your chatter history is empty. Create a channel and start chatting to fill up your history. +

+
1