diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml index 1087fa58563..f189b10650c 100644 --- a/addons/mail/data/mail_demo.xml +++ b/addons/mail/data/mail_demo.xml @@ -87,6 +87,7 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company Plan to install OpenERP + mail.message <![CDATA[Email0 inquiry]]> <div><font size="2">Hello,</font></div><div><font size="2"><br></font></div> @@ -95,7 +96,6 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company Sophie email - @@ -106,7 +106,7 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company catalogue 2012.pdf - Re: Plan to buy a Laptop + Re: Plan to install OpenERP Dear Customer,<br/> Thanks for showing interest in our products.<br/> diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 52226c7bc75..d951a09cbb5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -274,7 +274,7 @@ openerp.mail = function (session) { this.date = session.web.format_value(this._date, {type:"datetime"}); this.timerelative = $.timeago(this.date); } - if (this.type == 'email' && !this.author_id) { + if (this.type == 'email' && (!this.author_id || !this.author_id[0])) { this.avatar = ('/mail/static/src/img/email_icon.png'); } else if (this.author_id && this.template != 'mail.compose_message') { this.avatar = mail.ChatterUtils.get_image(this.session, 'res.partner', 'image_small', this.author_id[0]);