[FIX]stock_landed_costs: Fixed wrong costs on landed costs with many products
This commit is contained in:
parent
8aca4094af
commit
25c57719a2
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue