mirror of
https://github.com/NaN-tic/trytond-production_process.git
synced 2023-12-14 05:53:01 +01:00
fix readonly states of process in production
This commit is contained in:
parent
d5fa362342
commit
cf0ffe21d3
|
@ -259,7 +259,12 @@ class Production:
|
||||||
domain=[
|
domain=[
|
||||||
('output_products', '=', Eval('product', 0)),
|
('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
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
|
|
Loading…
Reference in a new issue