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:
Bernat Brunet Torruella 2016-08-04 16:58:58 +02:00
parent ccf96e7310
commit a261408c09

View file

@ -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')