From ea9df1ca4255f4b2865592a71397aee13bfdc013 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 --- 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 70ce79fc2a..844041db70 100644 --- a/modules/inbound_email/inbound_email.py +++ b/modules/inbound_email/inbound_email.py @@ -15,7 +15,7 @@ import trytond.config as config 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 @@ class Email(ModelSQL, ModelView): cls._order = [('id', 'DESC')] cls._buttons.update( process={ - 'readonly': Eval('rule'), + 'readonly': Bool(Eval('rule')), 'depends': ['rule'], }, )