[FIX] mass_mailing: avoid breaking template layouts by stripping classes/data-attributes/style
Rev. c9e38cae9f made the html sanitizer
stricter, and it will not badly break any attempt at composing
a good-looking mail template.
It will also strip all data-* attributes due to the default
`strict` mode, so any theme/snippets used in the template
will be dropped/crippled after saving.
mass-mailing templates are strictly meant for composing
outbound messages, and never displayed directly in users' Inbox
or published on the website. So there does not seem to be any
strict necessity to sanitize them.
This commit is contained in:
@@ -478,7 +478,7 @@ class MassMailing(osv.Model):
|
||||
'create_date': fields.datetime('Creation Date'),
|
||||
'sent_date': fields.datetime('Sent Date', oldname='date', copy=False),
|
||||
'schedule_date': fields.datetime('Schedule in the Future'),
|
||||
'body_html': fields.html('Body', translate=True),
|
||||
'body_html': fields.html('Body', translate=True, sanitize=False),
|
||||
'attachment_ids': fields.many2many(
|
||||
'ir.attachment', 'mass_mailing_ir_attachments_rel',
|
||||
'mass_mailing_id', 'attachment_id', 'Attachments'
|
||||
|
||||
Reference in New Issue
Block a user