[FIX] stock: Production Lot On Hand api.depends

Production Lot quantities are not recalculating
mid transaction without depends.

X-original-commit: 5aec749777b4697660a8da6cd1f8e56600f5adc3
This commit is contained in:
Richard deMeester
2020-11-05 11:23:23 +00:00
parent d4ad15d534
commit 404c2b2969
@@ -94,6 +94,7 @@ class ProductionLot(models.Model):
))
return super(ProductionLot, self).write(vals)
@api.depends('quant_ids', 'quant_ids.quantity')
def _product_qty(self):
for lot in self:
# We only care for the quants in internal or transit locations.