Skip to content
Snippets Groups Projects
Commit 24ba9f99 authored by jerome hanke (jhk)'s avatar jerome hanke (jhk)
Browse files

[FIX] mail: abstract getAvatarSource has default


Steps to reproduce:
- install sales
- create a new quotation

Previous behavior:
the avatar next to the author's name is empty in the mailthread

Current behavior:
avatar is displayed as expected

opw-2187231

closes odoo/odoo#44379

Signed-off-by: default avatarmightyjol <jhk-odoo@users.noreply.github.com>
parent 9ef6282f
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,11 @@ var AbstractMessage = Class.extend({
* @abstract
* @return {string}
*/
getAvatarSource: function () {},
getAvatarSource: function () {
if (this.hasAuthor()) {
return '/web/image/res.partner/' + this.getAuthorID() + '/image_128';
}
},
/**
* Get the body content of this message
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment