9807aa91865b5478a1a44bec3d442d2a787f12a0
On the PR https://github.com/odoo/odoo/pull/107558 some performance improvements were made when computing the weights. Unfortunately, this caused some slowdown on other cases. This PR keeps the read_group introduced on https://github.com/odoo/odoo/pull/107558 but reduces the number of 'get' by taking all the information needed only once before entering the for loop. For comparison, these are the differences on _compute_bulk_weight when going to Inventory/Receipts: | Before PR 107558 | After PR 107558 | After this PR | ------------- | ------------- | ------------- | | 550 ms | 10.30 s | 560ms | And these when removing the filter by default (leading it to fetch heavier records): | Before PR 107558 | After PR 107558 | After this PR | ------------- | ------------- | ------------- | | 2.27 s | 24.48 s | 1.89 s | OPW-3107540 closes odoo/odoo#109481 X-original-commit: 4bbf782505e72761c7c77abfe4fbd53e151e5bf0 Signed-off-by: William Henrotin (whe) <whe@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%