Convert to boolean the readonly state of the "Process" button on the inbound email

Closes #14700
This commit is contained in:
Cédric Krier committed 2026-03-21 09:21:43 +01:00
1 parent 6e482d8859
commit ea9df1ca42
1 file changed
+2 -2
+2 -2
View File
@@ -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'],
},
)