details:   https://code.tryton.org/tryton/commit/e5bd6ecbd251
branch:    7.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 88f32e110873 -r e5bd6ecbd251 
modules/marketing_automation/marketing_automation.py
--- a/modules/marketing_automation/marketing_automation.py      Tue Feb 10 
12:43:51 2026 +0100
+++ b/modules/marketing_automation/marketing_automation.py      Tue Feb 10 
17:53:53 2026 +0100
@@ -798,13 +798,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'],

Reply via email to