details:   https://code.tryton.org/tryton/commit/289bd807d7a6
branch:    7.0
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
        (grafted from ffe40330e3f6567fbd03e3139d7ff7580d342b4c)
diffstat:

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

diffs (21 lines):

diff -r 60f0a98a3721 -r 289bd807d7a6 modules/inbound_email/inbound_email.py
--- a/modules/inbound_email/inbound_email.py    Thu Mar 26 16:23:55 2026 +0100
+++ b/modules/inbound_email/inbound_email.py    Sat Mar 21 09:21:43 2026 +0100
@@ -14,7 +14,7 @@
 from trytond.config import config
 from trytond.model import ModelSQL, 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
 
@@ -131,7 +131,7 @@
         cls._order = [('id', 'DESC')]
         cls._buttons.update(
             process={
-                'readonly': Eval('rule'),
+                'readonly': Bool(Eval('rule')),
                 'depends': ['rule'],
                 },
             )

Reply via email to