From e9f9bb5802e3db6a0dfe545f25d775eb15063f5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 7 Aug 2014 14:34:58 +0200 Subject: [PATCH] [FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore. --- addons/email_template/email_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index f43beef..8f59f14 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -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 -- 1.7.10.4