details: https://code.tryton.org/tryton/commit/3b7440525739
branch: 7.6
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 948014189435 -r 3b7440525739 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
@@ -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'],
},
)