Skip to content
Snippets Groups Projects
Commit 9d6db3af authored by Thomas Beckers's avatar Thomas Beckers
Browse files

[FIX] account: reduce performance impact when checking CABA moves


Commit 7fbb337e introduced performance slowdown when reconciling a
bank statement line with multiple invoices. This is due to the
compute function being called a lot of times and each time need to
trigger a search for CABA moves (even if the company do not use
cash basis).

This commit aims to not trigger the search if the company do not use
cash basis and add some domain conditions on indexed fields to speed up
the search when it's a cash basis company.

opw-3013391

closes odoo/odoo#105925

Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
Co-authored-by: default avatarArnaud-Sibille <arsi@odoo.com>
parent 11e9d3f1
No related branches found
No related tags found
Loading
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