diff --git a/addons/mass_mailing/wizard/mailing_mailing_test.py b/addons/mass_mailing/wizard/mailing_mailing_test.py index fe1d22fa68a2f70ce27c40c6ca966b502e5b36b0..dd7eb37f99c64d5ba67b2b55bdb3447652298727 100644 --- a/addons/mass_mailing/wizard/mailing_mailing_test.py +++ b/addons/mass_mailing/wizard/mailing_mailing_test.py @@ -39,7 +39,7 @@ class TestMassMailing(models.TransientModel): # Downside: Qweb syntax is only tested when there is atleast one record of the mailing's model if record: # Returns a proper error if there is a syntax error with Qweb - body = mailing._render_field('body_html', record.ids, post_process=True)[record.id] + body = mailing.with_context(preserve_comments=True)._render_field('body_html', record.ids, post_process=True)[record.id] preview = mailing._render_field('preview', record.ids, post_process=True)[record.id] full_body = mailing._prepend_preview(Markup(body), preview) subject = mailing._render_field('subject', record.ids)[record.id]