[IMP] mail: chatter: html messages displayed as html.
bzr revid: tde@openerp.com-20120719141214-m5yyj74q65yoiruu
This commit is contained in:
parent
7e748858cd
commit
4b5bf16065
|
@ -754,7 +754,9 @@ openerp.mail = function(session) {
|
|||
record.mini_url = mail.ChatterUtils.get_image(this.session.prefix, this.session.session_id, 'res.users', 'avatar', record.user_id[0]);
|
||||
}
|
||||
// body text manipulation
|
||||
record.body = mail.ChatterUtils.do_text_remove_html_tags(record.body);
|
||||
if (record.subtype == 'plain') {
|
||||
record.body = mail.ChatterUtils.do_text_remove_html_tags(record.body);
|
||||
}
|
||||
record.body = mail.ChatterUtils.do_replace_expressions(record.body);
|
||||
// format date according to the user timezone
|
||||
record.date = session.web.format_value(record.date, {type:"datetime"});
|
||||
|
|
Loading…
Reference in New Issue