99bc9420a5e5111bded9d0cc104504d47d800e97
PURPOSE Purpose is to try to reduce friction between searches in loops, team assign on leads and unlink during merge process that unlink leads and forces flush / cache reset, as well as PLS computation. SPECIFICATIONS During team assignment setting team on leads one lead at a time may cause performance issue. As PLS is computed at each flush we want to flush after a bunch of lead. For that purpose we need to avoid too much commits and also avoid to search for duplicate at each assignation. We therefore perform the search for duplicates before going into allocation and use a cache through loops to ease using pre-fetched information. Unlinking duplicates at each iteration is also sub efficient as it causes recomputation or invalidation. We therefore aggregate all duplicates to unlink and unlink them in the main team-based loop instead of the sub loop that is lead-based. LINKS Task ID-2444908 (assign fixes) Task ID-2489951 (assign process improvements) COM PR odoo/odoo#70172 X-original-commit: c5310102210fb9afc6ab786f4c8f6eaf5aee59bb Co-authored-by: Thibault François <tfr@odoo.com> Co-authored-by: Thibault Delavallée <tde@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%