Skip to content
Snippets Groups Projects
Commit f435c655 authored by Nathan de Pryck's avatar Nathan de Pryck
Browse files

[FIX]account_asset: Increase performance to generate asset entries


For each asset depreciation lines we verify that there are not linked
to a move. This verification was done for each line separately.
Moreover, during the creation of the journal entries, we were writing
on the 'line_ids'. In this case, accessing the move of a line
was invalidating the cache. This fix ensure that this operation is
done out of the loop and the cache is then not invalidated at each
step.

See opw-2000305

closes odoo/odoo#33908

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 6a6471d7
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment