From 592e09d67e94091d280d964b39f99064f1dfd592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Dec 2025 15:20:11 +0100 Subject: [PATCH] Support MJML syntax for marketing email --- modules/marketing_automation/CHANGELOG | 1 + modules/marketing_automation/marketing_automation.py | 5 ++++- modules/marketing_email/CHANGELOG | 1 + modules/marketing_email/marketing.py | 5 ++++- 4 files changed, 10 insertions(+), 2 deletions(-) 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('