From df305dffc0c8645be8f4590c76d359138d4d9017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 4 Sep 2014 22:50:14 +0200 Subject: [PATCH] Fix quantity picked in _get_anglo_saxon_move consumed_qty must be increased on each loop. issue4134 review9621002 --- stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock.py b/stock.py index 1cc988d9df..4e53710ede 100644 --- a/stock.py +++ b/stock.py @@ -141,6 +141,7 @@ class Move: cost_price = move.cost_price yield (move, qty, cost_price) + consumed_qty += qty @classmethod def update_anglo_saxon_quantity_product_cost(cls, product, moves,