diff options
Diffstat (limited to 'addons/mail/static/src/xml/mail_chat_common.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail_chat_common.xml | 5 |
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 && 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> |
