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'], }, )