From e00c2b99bfcc3f1be3db5ff56028779ee6f4d430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 21 Mar 2026 09:21:43 +0100 Subject: [PATCH] Convert to boolean the readonly state of the "Process" button on the inbound email Closes #14700 (grafted from ffe40330e3f6567fbd03e3139d7ff7580d342b4c) --HG-- branch : 7.0 --- modules/inbound_email/inbound_email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/inbound_email/inbound_email.py b/modules/inbound_email/inbound_email.py index 9ce3ee815d..c682b8dd27 100644 --- a/modules/inbound_email/inbound_email.py +++ b/modules/inbound_email/inbound_email.py @@ -14,7 +14,7 @@ from functools import partial 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 @@ class Email(ModelSQL, ModelView): cls._order = [('id', 'DESC')] cls._buttons.update( process={ - 'readonly': Eval('rule'), + 'readonly': Bool(Eval('rule')), 'depends': ['rule'], }, )