[IMP] Chatter widget: display email icon only when sender is unknown.

bzr revid: tde@openerp.com-20121107152126-71yzsy1nb0tj549w
This commit is contained in:
Thibault Delavallée
2012-11-07 16:21:26 +01:00
parent f9829bbb93
commit 48cec81235
+1 -1
View File
@@ -590,7 +590,7 @@ openerp.mail = function (session) {
//formating and add some fields for render
this.date = session.web.format_value(this._date, {type:"datetime"});
this.timerelative = $.timeago(this.date);
if (this.type == 'email') {
if (this.type == 'email' && !this.author_id[0]) {
this.avatar = ('/mail/static/src/img/email_icon.png');
} else {
this.avatar = mail.ChatterUtils.get_image(this.session, 'res.partner', 'image_small', this.author_id[0]);