Skip to content
Snippets Groups Projects
Commit 911db9df authored by Josse Colpaert's avatar Josse Colpaert
Browse files

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...
parents dcca9b52 25c57719
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment