[IMP] Chatter widget: display email icon only when sender is unknown.
bzr revid: tde@openerp.com-20121107152126-71yzsy1nb0tj549w
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user