details: https://code.tryton.org/tryton/commit/6787f1df2f31
branch: 6.0
user: Cédric Krier <[email protected]>
date: Tue Feb 10 17:53:53 2026 +0100
description:
Show email buttons of marketing record activity when the state is done
The email is sent only when the record activity is in the state done so
the
buttons must not be available in any other state.
Closes #14597
(grafted from 00f2a2cdb0922e262410c7da835c75cf15e458c2)
diffstat:
modules/marketing_automation/marketing_automation.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 7c054af20de6 -r 6787f1df2f31
modules/marketing_automation/marketing_automation.py
--- a/modules/marketing_automation/marketing_automation.py Fri Feb 06
19:00:24 2026 +0100
+++ b/modules/marketing_automation/marketing_automation.py Tue Feb 10
17:53:53 2026 +0100
@@ -769,13 +769,13 @@
))
cls._buttons.update(
on_email_opened={
- 'invisible': ((Eval('state') != 'waiting')
+ 'invisible': ((Eval('state') != 'done')
| (Eval('activity_action') != 'send_email')
| Eval('email_opened', False)),
'depends': ['state', 'activity_action', 'email_opened'],
},
on_email_clicked={
- 'invisible': ((Eval('state') != 'waiting')
+ 'invisible': ((Eval('state') != 'done')
| (Eval('activity_action') != 'send_email')
| Eval('email_clicked', False)),
'depends': ['state', 'activity_action', 'email_clicked'],