details: https://code.tryton.org/tryton/commit/79dd5c8202a9
branch: 7.8
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 a49da9d72480 -r 79dd5c8202a9 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'],
},
)