Commit Graph

6 Commits (2d79643e1f0885315648c461a336a1f47f7f57b4)

Author SHA1 Message Date
Simone Orsi 2d79643e1f mail_digest: fwd port improvements from v10 2018-05-31 11:18:05 +02:00
Simone Orsi 3d5a82e771 mail_digest: improve message body rendering
Message's body can contains styles and other stuff
that can screw the look and feel of digests' mails.

Now we sanitize it if `sanitize_msg_body` is set on the digest (default on).
2018-05-31 11:17:33 +02:00
Simone Orsi 6a576a5427 [MIG][11.0] mail_digest 2018-02-01 11:04:01 +01:00
Simone Orsi b697474be5 [fix] mail_digest: move `template_id` to `digest_template_id`
When creating digest records within the context of mail composer
(and possibly other contexts) you'll have a `default_template_id`
key in the context which is going to override our safe default.

This is going to break email generation because the template
will be completely wrong and unpredictable. Lesson learned :)
2018-02-01 11:04:01 +01:00
Simone Orsi 1d785b42f4 [MIG][v10] mail_digest 2018-02-01 11:04:01 +01:00
Simone Orsi 600648a9f0 [add] mail_digest 2018-02-01 11:04:01 +01:00