diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e22413fd27451..e2b2fa33ca2bb 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1459,7 +1459,7 @@ def _create_link_for_product(operation_id, product_id, qty): product_qty = ops.qty_done if done_qtys else ops.product_qty qty_to_assign = uom_obj._compute_qty_obj(cr, uid, ops.product_uom_id, product_qty, ops.product_id.uom_id, context=context) precision_rounding = ops.product_id.uom_id.rounding - for move_dict in prod2move_ids.get(ops.product_id.id, []): + for move_dict in list(prod2move_ids.get(ops.product_id.id, [])): move = move_dict['move'] for quant in move.reserved_quant_ids: if float_compare(qty_to_assign, 0, precision_rounding=precision_rounding) != 1: