[FIX] Chatter: fixed avatar management as this should be fixed in trunk
bzr revid: tde@openerp.com-20130612095944-2aa2mezzbb47uk6g
This commit is contained in:
@@ -275,7 +275,7 @@ openerp.mail = function (session) {
|
||||
} else 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, 'mail.message', 'image_small', this.id);
|
||||
this.avatar = mail.ChatterUtils.get_image(this.session, 'res.partner', 'image_small', this.author_id[0]);
|
||||
} else {
|
||||
this.avatar = mail.ChatterUtils.get_image(this.session, 'res.users', 'image_small', this.session.uid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user