details:   https://code.tryton.org/tryton/commit/ffe40330e3f6
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sat Mar 21 09:21:43 2026 +0100
description:
        Convert to boolean the readonly state of the "Process" button on the 
inbound email

        Closes #14700
diffstat:

 modules/inbound_email/inbound_email.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 99f33c3342e8 -r ffe40330e3f6 modules/inbound_email/inbound_email.py
--- a/modules/inbound_email/inbound_email.py    Sat Mar 21 09:21:04 2026 +0100
+++ b/modules/inbound_email/inbound_email.py    Sat Mar 21 09:21:43 2026 +0100
@@ -15,7 +15,7 @@
 from trytond.model import (
     ModelSQL, ModelStorage, ModelView, fields, sequence_ordered)
 from trytond.pool import Pool
-from trytond.pyson import Eval
+from trytond.pyson import Bool, Eval
 from trytond.transaction import Transaction
 from trytond.url import http_host
 
@@ -130,7 +130,7 @@
         cls._order = [('id', 'DESC')]
         cls._buttons.update(
             process={
-                'readonly': Eval('rule'),
+                'readonly': Bool(Eval('rule')),
                 'depends': ['rule'],
                 },
             )

Reply via email to