功能刀具拆解失败问题

This commit is contained in:
liaodanlong
2024-08-01 10:46:14 +08:00
parent 051273017d
commit 510e8d49fb

View File

@@ -1103,7 +1103,7 @@ class StockMove(models.Model):
move_line_ids = picking_id.move_line_ids
for move_line_id in move_line_ids:
for res in data:
if move_line_id.lot_id.product_id == res['lot_id'].product_id:
if move_line_id.product_id == res['lot_id'].product_id:
move_line_id.write({
'destination_location_id': res.get('destination').id,
'lot_id': res.get('lot_id').id