summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail_chat_common.xml
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2015-08-10 16:23:44 +0200
committerAaron Bohy <aab@odoo.com>2015-09-01 20:16:09 +0200
commit95b97d1010e2596c8dbe719382c77c6009819afa (patch)
tree2a5d3b0400785eab023ec1c7768829482682cf24 /addons/mail/static/src/xml/mail_chat_common.xml
parent1d54858cbdd10dd6fbfbb3edc1e032317e2ba3f6 (diff)
[REF] im_livechat : refactoring, make it compatbile with the nw mail module, change reporting sql view (split them in 2), adapt view, ...
Diffstat (limited to 'addons/mail/static/src/xml/mail_chat_common.xml')
-rw-r--r--addons/mail/static/src/xml/mail_chat_common.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/mail_chat_common.xml b/addons/mail/static/src/xml/mail_chat_common.xml
index 745893c11e1..461a6f94d06 100644
--- a/addons/mail/static/src/xml/mail_chat_common.xml
+++ b/addons/mail/static/src/xml/mail_chat_common.xml
@@ -41,9 +41,12 @@
<div class="o_mail_chat_im_message_core">
<!-- author -->
<span class="text-muted">
- <t t-if="message.author_id">
+ <t t-if="message.author_id &amp;&amp; message.author_id[0]">
<strong><t t-esc="message.author_id[1]"/></strong> -
</t>
+ <t t-if="!message.author_id || !message.author_id[0]">
+ <strong><t t-esc="default_username || widget.options.default_username"/></strong> -
+ </t>
<t t-if="!message.author_id">
<strong><t t-esc="message.email_from"/></strong> -
</t>