[FIX] email_template: when generating body containing the user's signature, add it...
authorThibault Delavallée <tde@openerp.com>
Thu, 7 Aug 2014 12:34:58 +0000 (14:34 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 7 Aug 2014 14:47:59 +0000 (16:47 +0200)
addons/email_template/email_template.py

index f43beef..8f59f14 100644 (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