[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:
parent
f5688cd8fd
commit
e9f9bb5802
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue