diff options
| author | David Beguin <dbe@odoo.com> | 2019-09-25 12:01:22 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-09-25 14:42:31 +0000 |
| commit | a07324af172a1808749adb151ed37157b949c40b (patch) | |
| tree | 2cc29bf0eb87d708022b4315a5592abb8442278d /addons/crm/data | |
| parent | b8401b09f8b5505440e88028386f7ad9902cb0cb (diff) | |
[IMP] crm : add PLS rebuild threshold for onboarding purpose
When there are only few leads, marking a lead as won or lost changes
a lot the won/lost repartition. For onboarding purpose, the cron is launched
if the threshold PLS config param is not reached.
When the number of lead in the database reaches the PLS threshold,
the config parameter is set to 0 to avoid the useless check
of the number of lead in the dabase in the future
Task ID: 2044539
PR #37413
Diffstat (limited to 'addons/crm/data')
| -rw-r--r-- | addons/crm/data/crm_lead_prediction_data.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/crm/data/crm_lead_prediction_data.xml b/addons/crm/data/crm_lead_prediction_data.xml index a437956d0fc..1a1cbc3675f 100644 --- a/addons/crm/data/crm_lead_prediction_data.xml +++ b/addons/crm/data/crm_lead_prediction_data.xml @@ -28,6 +28,10 @@ <field name="key">crm.pls_start_date</field> <field name="value" eval="(datetime.now() - timedelta(days=8)).strftime('%Y-%m-%d')"/> </record> + <record id="crm_pls_rebuild_threshold_param" model="ir.config_parameter"> + <field name="key">crm.pls_rebuild_threshold</field> + <field name="value">100</field> + </record> </data> <record id="website_crm_score_cron" model="ir.cron"> |
