[FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore.

This commit is contained in:
Thibault Delavallée 2014-08-07 14:34:58 +02:00
parent f5688cd8fd
commit e9f9bb5802
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ class email_template(osv.osv):
# body: add user signature, sanitize
if 'body_html' in fields and template.user_signature:
signature = self.pool.get('res.users').browse(cr, uid, uid, context).signature
values['body_html'] = tools.append_content_to_html(values['body_html'], signature)
values['body_html'] = tools.append_content_to_html(values['body_html'], signature, plaintext=False)
if values.get('body_html'):
values['body'] = tools.html_sanitize(values['body_html'])
# technical settings