parent
f7aa1ac4bf
commit
d0259a2503
|
@ -266,7 +266,10 @@ class Production(metaclass=PoolMeta):
|
|||
'readonly': ~Eval('state').in_(['request', 'draft']),
|
||||
})
|
||||
operations = fields.One2Many('production.operation', 'production',
|
||||
'Operations', order=[('sequence', 'ASC')], states={
|
||||
'Operations', order=[
|
||||
('sequence', 'ASC'),
|
||||
('id', 'ASC'),
|
||||
], states={
|
||||
'readonly': Eval('state') == 'done',
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue