Fix state readonly domain | #118011

This commit is contained in:
Jared Esparza 2023-01-31 09:52:58 +01:00
parent 4da14129e8
commit a08106fcea
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class QuotationLine(metaclass=PoolMeta):
__name__ = "configurator.quotation.line"
state = fields.Selection(STATES, 'State', required=True,
states={'readonly': 'design_state' != 'draft'},
states={'readonly': Eval('design_state') != 'draft'},
depends=['design_state'])
@staticmethod