0cc6a76891d022cf44ba1117799fa0165663d4e8
Purpose ======= Update Lead Probability CRON is currently running in a single transaction and is locking lead table for too long. This task aim to improve the performance of the cron by: - reducing the number of update (instead of updating one by one the leads, update all lead with same value to update) - Making it multi-transactional (to avoid locking table during the whole process) Spec ==== - compute probability and automated probability values with only 2 decimals (needed to compare new and old probability + to avoid too many values in the group by probability) - Group the leads to update by Probability value (rounded by 2 decimals) Note : This commit doesn't change the field definition to avoid migration. - Update leads by batch of limited number (=step), to avoid transaction to take too long. After each batch execution, commit to unlock the table before continuing with next batch. Task ID: 2224677 closes odoo/odoo#51310 X-original-commit: ee346936efc6cabce14cb73223ecd2e6a0cc1e3f Signed-off-by: Thibault Delavallee (tde) <tde@openerp.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%