[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.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user