2b95b875719473c92fcb065e14d52c63425e8382
Problem --------- The compute_is_used function currently parses through a huge amount of data using the _read_group ORM function. Which causes some performance issues in large databases. Objective --------- Improve performance of the said function. Solution --------- Instead of reading the data on whole tables (ex.account_move_line), we read the relation table between the modules and the taxes. This is done using SQL queries with the EXISTS statement. Furthermore, the code logic is modified so that if all the taxes for which we compute `is_used` have been found, we don't look further in other modules since doing this cannot add an new relevant information and actually slows down the computation. closes odoo/odoo#139497 Signed-off-by: Quentin De Paoli <qdp@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%