summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
authorIvan Yelizariev <iel@odoo.com>2021-04-09 12:58:32 +0000
committerIvan Yelizariev <iel@odoo.com>2021-04-13 13:48:37 +0000
commit14abcfa92cd37db82338f9a933221142026a78bd (patch)
treea7398d8003cad7cbe5d9b806eac26c4f039877fc /odoo/modules/loading.py
parent7cd23a2cd464ccdfcb028b4f2c948654634b973c (diff)
[FIX] stock_account: decrease number of queries in _run_fifo_vacuum
_run_fifo_vacuum may take significant time. This will slow down any operations related to stock (Inventory Adjustment, POS Session closing, etc.) or even block them due to timeout error. So, decreasing execution time is quite desirable. This commit is doing it by decreasing number queries: 1. prefetch all_candidates before for-loop to avoid using `search` in each iteration 2. move code about updating standard_price after the for-loop --- opw-2499032 closes odoo/odoo#69040 Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'odoo/modules/loading.py')
0 files changed, 0 insertions, 0 deletions