From 25c57719a2bf77c212e593b1ade9a5ec42a76790 Mon Sep 17 00:00:00 2001 From: Grover Menacho Date: Wed, 17 Sep 2014 15:13:48 -0400 Subject: [PATCH] [FIX]stock_landed_costs: Fixed wrong costs on landed costs with many products --- addons/stock_landed_costs/stock_landed_costs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_landed_costs/stock_landed_costs.py b/addons/stock_landed_costs/stock_landed_costs.py index 8933cec1164..ad729377fb2 100644 --- a/addons/stock_landed_costs/stock_landed_costs.py +++ b/addons/stock_landed_costs/stock_landed_costs.py @@ -204,7 +204,7 @@ class stock_landed_cost(osv.osv): else: quant_dict[quant.id] += diff for key, value in quant_dict.items(): - quant_obj.write(cr, uid, quant.id, {'cost': value}, context=context) + quant_obj.write(cr, uid, key, {'cost': value}, context=context) qty_out = 0 for quant in line.move_id.quant_ids: if quant.location_id.usage != 'internal':