[FIX] Chatter: fixed avatar management as this should be fixed in trunk

bzr revid: tde@openerp.com-20130612095944-2aa2mezzbb47uk6g
This commit is contained in:
Thibault Delavallée
2013-06-12 11:59:44 +02:00
parent 4f7a2419fe
commit 7d2344bc36
+1 -1
View File
@@ -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);
}