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 188c79066f
commit e1964e9bb5
1 changed files with 4 additions and 0 deletions

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