Fix problme when try to seach for lot in stock_move form and the product or the location are not set yet
This commit is contained in:
parent
188c79066f
commit
e1964e9bb5
4
stock.py
4
stock.py
|
@ -29,3 +29,7 @@ class Move():
|
|||
if 'from_location' not in cls.lot.depends:
|
||||
cls.lot.depends.append('from_location')
|
||||
cls.lot.loading = 'lazy'
|
||||
|
||||
if 'product' not in cls.lot.depends:
|
||||
cls.lot.depends.append('product')
|
||||
cls.lot.states['readonly'] = ~Eval('product') | ~Eval('from_location')
|
||||
|
|
Loading…
Reference in New Issue