Skip to content
Snippets Groups Projects
Commit 81418ec1 authored by Humberto Arocha's avatar Humberto Arocha Committed by Denis Ledoux
Browse files

[FIX] stock_landed_costs: avoid useless multiple writes

Initialise quant_dict inside for loop as doing outside loops
renders to be a quadratic write of quant object due to the fact that
previous quants are kept each time a new valuation line is read.
In case of posting a Landed Cost record with a huge amount of cost_lines
and huge amount of stock_move having several quants would result in a
extra overhead.

Closes #9005
parent c862b2f3
No related branches found
No related tags found
No related merge requests found
Loading
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