From 3adc8c8723351ebebc21c90c4cbe302a04422572 Mon Sep 17 00:00:00 2001 From: Amit Dodiya Date: Tue, 29 May 2012 12:54:15 +0530 Subject: [PATCH] [FIX] action_consume wizard is not generating proper move lines for consume product while spliting the product with more than one lot in product_to_consume moves bzr revid: ado@openerp.com-20120529072415-qb1cuiw1kx0nq8dn --- addons/mrp/mrp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 8a25af01e7b..1cfa8cd586a 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -736,7 +736,8 @@ class mrp_production(osv.osv): # we already have more qtys consumed than we need continue - raw_product[0].action_consume(qty, raw_product[0].location_id.id, context=context) + for consume_line in raw_product: + consume_line.action_consume(qty, consume_line.location_id.id, context=context) if production_mode == 'consume_produce': # To produce remaining qty of final product