Skip to content

Commit

Permalink
Merge pull request #561 from akretion/9-ocb-fix-move-operation-link-lot
Browse files Browse the repository at this point in the history
Fix move operation link creation
  • Loading branch information
pedrobaeza committed Apr 13, 2017
2 parents 25a2af7 + 9a8180d commit f619a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/stock.py
Expand Up @@ -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:
Expand Down

0 comments on commit f619a41

Please sign in to comment.