fix readonly states of process in production
This commit is contained in:
parent
d5fa362342
commit
cf0ffe21d3
|
@ -259,7 +259,12 @@ class Production:
|
|||
domain=[
|
||||
('output_products', '=', Eval('product', 0)),
|
||||
],
|
||||
depends=['product'])
|
||||
states={
|
||||
'readonly': (~Eval('state').in_(['request', 'draft'])
|
||||
| ~Eval('warehouse', 0) | ~Eval('location', 0)),
|
||||
'invisible': ~Eval('product'),
|
||||
},
|
||||
depends=['product', 'state', 'warehouse', 'location'])
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
|
Loading…
Reference in New Issue