Merge pull request #2501 from hmen89/8.0-fix-write-compute-cost

[FIX]stock_landed_costs: Fixed wrong costs on landed costs with many pro...
This commit is contained in:
Josse Colpaert
2014-09-20 09:28:19 +02:00
@@ -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':