[IMP] im_livechat: Clean no_content message for 'History' action

This commit is contained in:
Mansi Gandhi
2016-05-12 13:25:05 +02:00
committed by Yannick Tivisse
parent efd57f216c
commit 3c14eee441
2 changed files with 11 additions and 0 deletions
@@ -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 '<p">%s</p>' % (help)
return super(MailChannel, self).get_empty_list_help(help)
@@ -84,6 +84,11 @@
<field name="search_view_id" ref="im_livechat.mail_channel_view_search"/>
<field name="domain">[('livechat_channel_id', '!=', None)]</field>
<field name="context">{}</field>
<field name="help" type="html">
<p>
Your chatter history is empty. Create a channel and start chatting to fill up your history.
</p>
</field>
</record>
<record id="mail_channel_action_tree" model="ir.actions.act_window.view">
<field name="sequence">1</field>