summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-09-16 14:06:34 +0000
committerfw-bot <otis@odoo.com>2019-09-16 17:17:44 +0000
commit2c7ab92ae4b5282a78827ae75cb92c8418a9a5c5 (patch)
treeef61711688dd336ac98f1ee64c95407053f2274e /addons/web/static/tests/fields/basic_fields_tests.js
parentfa9beab3eab77ddbc9d21cd1eb70ea0fe6be5b18 (diff)
[FIX] account: existing_accounting function takes forever for large db
Some operations call the WizardMultiChartsAccounts.existing_accounting (file chart_template.py), such as going to the settings of the Accounting app. This function tests whether any lines are present in several tables related to accouting. Before this commit: a search is performed throughout the tables and takes forever for a large db. Partner reports: "with current code, a customer with 12M account move lines gets an out of memory error after the screen has sat for 10 minutes - this is because the code is doing a read on every row in the account move line just to see if the user company has a record". After this commit: with limit=1, the search stops after only one line is found in any table. closes odoo/odoo#36975 Opw: 2066938 X-original-commit: 80563819ae93c00d171935f1d1cded33de15ba21 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions