[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user