Allow to select process if there isn't warehouse nor location
This commit is contained in:
parent
27d83231a0
commit
90d84d64df
|
@ -313,8 +313,7 @@ class Production:
|
|||
('output_products', '=', Eval('product', 0)),
|
||||
],
|
||||
states={
|
||||
'readonly': (~Eval('state').in_(['request', 'draft'])
|
||||
| ~Eval('warehouse', 0) | ~Eval('location', 0)),
|
||||
'readonly': ~Eval('state').in_(['request', 'draft']),
|
||||
'invisible': ~Eval('product'),
|
||||
},
|
||||
depends=['product', 'state', 'warehouse', 'location'])
|
||||
|
|
Loading…
Reference in New Issue