e6cbfe64762786455c28fcb95446244da2b8ed7a
Issue: The `_update_available_quantity` will flush the all environment due to the savepoint (at each call). When we working with the package, it becomes bottleneck due to the `_compute_package_info`. Indeed, it computes two compute store field (`location_id` and `company_id`) and depends of multiple field of related quants `quants_ids.xxx`. It means that each time we enter/exit in the savepoint to update quants, this compute will be execute (because of flush + compute_store). Solution: Avoid flushing when enter in the savepoint of `_update_available_quantity` (`flush=False`) Performance gain: To validate a Delivery with 1000 move lines with package (source and dest): - Without patch: +- 120 sec - With patch: +- 17 sec opw-2371161 closes odoo/odoo#62841 X-original-commit: b2d57323caf9f7fe47c4fe9ac26b0e955d9987b9 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com> Signed-off-by: William Henrotin <Whenrow@users.noreply.github.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%