mirror of
https://github.com/NaN-tic/trytond-stock_lot_quantity.git
synced 2023-12-14 03:12:59 +01:00
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
ccf96e7310
commit
a261408c09
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 a new issue