diff --git a/modules/marketing_automation/CHANGELOG b/modules/marketing_automation/CHANGELOG index 19b23a39cc..cb4ae626b6 100644 --- a/modules/marketing_automation/CHANGELOG +++ b/modules/marketing_automation/CHANGELOG @@ -1,3 +1,4 @@ +* Support MJML syntax for email Version 7.8.0 - 2025-12-15 -------------------------- diff --git a/modules/marketing_automation/marketing_automation.py b/modules/marketing_automation/marketing_automation.py index f66cef3fe6..16339816c9 100644 --- a/modules/marketing_automation/marketing_automation.py +++ b/modules/marketing_automation/marketing_automation.py @@ -25,7 +25,7 @@ from trytond.model import ( fields) from trytond.pool import Pool from trytond.pyson import Eval, If, PYSONDecoder, TimeDelta -from trytond.report import Report, html_to_text +from trytond.report import Report, html_to_text, mjml_to_html from trytond.sendmail import SMTPDataManager, send_message_transactional from trytond.tools import grouped_slice, pairwise_longest, reduce_ids from trytond.tools.chart import sparkline @@ -716,6 +716,9 @@ class Activity( activity=self.rec_name, exception=exception)) from exception + if content.startswith('