From 778de23d6f436dfd55721e75c2f0022212624afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 13 Jan 2014 10:24:40 +0100 Subject: [PATCH] [IMP] email_template: body_html is now an html file, not a text file anymore. Now that tools.mail.html_sanitize() has been detroyed, there is no need anymore to keep this field as a text field. bzr revid: tde@openerp.com-20140113092440-je3vpgohvljukjmn --- 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 904481096d3..1c5c9693c79 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -176,7 +176,7 @@ class email_template(osv.osv): 'mail_server_id': fields.many2one('ir.mail_server', 'Outgoing Mail Server', readonly=False, help="Optional preferred server for outgoing mails. If not set, the highest " "priority one will be used."), - 'body_html': fields.text('Body', translate=True, help="Rich-text/HTML version of the message (placeholders may be used here)"), + 'body_html': fields.html('Body', translate=True, help="Rich-text/HTML version of the message (placeholders may be used here)"), 'report_name': fields.char('Report Filename', translate=True, help="Name to use for the generated report file (may contain placeholders)\n" "The extension can be omitted and will then come from the report type."),