Fix state readonly domain | #118011
This commit is contained in:
parent
4da14129e8
commit
a08106fcea
|
@ -66,7 +66,7 @@ class QuotationLine(metaclass=PoolMeta):
|
||||||
__name__ = "configurator.quotation.line"
|
__name__ = "configurator.quotation.line"
|
||||||
|
|
||||||
state = fields.Selection(STATES, 'State', required=True,
|
state = fields.Selection(STATES, 'State', required=True,
|
||||||
states={'readonly': 'design_state' != 'draft'},
|
states={'readonly': Eval('design_state') != 'draft'},
|
||||||
depends=['design_state'])
|
depends=['design_state'])
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue