[FIX] repair: set lot
The parameter `lot_id` must be a recordset, not an `int`. opw-2188752 closes odoo/odoo#44525 X-original-commit: aeafd2a84e309ee4a496f9a109d7fe6b0fb9cd3d Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -520,14 +520,14 @@ class Repair(models.Model):
|
||||
available_quantity = self.env['stock.quant']._get_available_quantity(
|
||||
move.product_id,
|
||||
move.location_id,
|
||||
lot_id=operation.lot_id.id,
|
||||
lot_id=operation.lot_id,
|
||||
strict=False,
|
||||
)
|
||||
move._update_reserved_quantity(
|
||||
product_qty,
|
||||
available_quantity,
|
||||
move.location_id,
|
||||
lot_id=operation.lot_id.id,
|
||||
lot_id=operation.lot_id,
|
||||
strict=False,
|
||||
)
|
||||
# Then, set the quantity done. If the required quantity was not reserved, negative
|
||||
|
||||
Reference in New Issue
Block a user