[FIX]stock_landed_costs: Fixed wrong costs on landed costs with many products

This commit is contained in:
Grover Menacho 2014-09-17 15:13:48 -04:00
parent 8aca4094af
commit 25c57719a2
1 changed files with 1 additions and 1 deletions

View File

@ -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':