diff --git a/mail_digest/controllers/digest_layout_preview.py b/mail_digest/controllers/digest_layout_preview.py index f3abc871..2766a52b 100644 --- a/mail_digest/controllers/digest_layout_preview.py +++ b/mail_digest/controllers/digest_layout_preview.py @@ -92,7 +92,6 @@ class DigestPreview(http.Controller): msg.subtype_id = subtype subject, body = self._fake_content(subtype, i, x) msg.subject = subject - msg.body = body msg.message_type = random.choice( ('email', 'comment', 'notification')) msg.email_from = 'random@user%d.com' % i @@ -101,6 +100,11 @@ class DigestPreview(http.Controller): # relate a document msg.model = records._name msg.res_id = random.choice(records.ids) + # simulate messages w/ no body but tracking values + if x == random.choice([1, 2]): + msg.tracking_value_ids = self._fake_tracking_vals() + else: + msg.body = body messages += msg return messages diff --git a/mail_digest/templates/digest_default.xml b/mail_digest/templates/digest_default.xml index 4343b975..66c10f66 100644 --- a/mail_digest/templates/digest_default.xml +++ b/mail_digest/templates/digest_default.xml @@ -43,6 +43,18 @@
+ +

Changed values

+
    + +
  • + : + → + +
  • +
    +
+