changeset 2335edb9a927 in modules/marketing_automation:5.6 details: https://hg.tryton.org/modules/marketing_automation?cmd=changeset;node=2335edb9a927 description: Register SMTPDataManager to the transaction
It must join explicitly a transaction to be finished when the transaction is committed. issue9721 review329281002 (grafted from 9c2de367f4a8a5700d8dc030cf1668b9fde55831) diffstat: marketing_automation.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (15 lines): diff -r 37fb1d6ddb0e -r 2335edb9a927 marketing_automation.py --- a/marketing_automation.py Sat Oct 03 00:42:32 2020 +0200 +++ b/marketing_automation.py Sat Oct 24 13:13:11 2020 +0200 @@ -843,9 +843,10 @@ cls._cancel_opposite(record_activities) now = datetime.datetime.now() + smtpd_datamanager = Transaction().join(SMTPDataManager()) for record_activity in record_activities: record_activity.activity.execute( - record_activity, smtpd_datamanager=SMTPDataManager(), **kwargs) + record_activity, smtpd_datamanager=smtpd_datamanager, **kwargs) record_activity.at = now record_activity.state = 'done' cls.save(record_activities)