From 136630c56fd1405c69df1c6757bbd9b3184ea9cb Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 5 Sep 2016 15:37:08 +0200 Subject: [PATCH] [FIX] mail: do not split translations on mail template This commit is a port of a17c09af to master The email templates may contain non-html content (mako) which should not be sanitized. Changing this attribute to sanitize_attributes made the translations to be split when translated. --- addons/mail/models/mail_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_template.py b/addons/mail/models/mail_template.py index 801cf27f50e..8508fa9f250 100644 --- a/addons/mail/models/mail_template.py +++ b/addons/mail/models/mail_template.py @@ -139,7 +139,7 @@ class MailTemplate(models.Model): 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.Html('Body', translate=True, sanitize_attributes=False) + body_html = fields.Html('Body', translate=True, sanitize=False) 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.")