summaryrefslogtreecommitdiff
path: root/addons/crm/data
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-09-13 09:51:43 +0000
committerDavid Beguin <dbe@odoo.com>2019-09-25 14:42:31 +0000
commitcd72fd9a3f0519fe8a36c1771f52bd8b2fd8a032 (patch)
treeccfe2ef8a84141ef908d54569c56b23103d2b091 /addons/crm/data
parent403bf9e76f92b9e8bb021a3c186704362edaa7b0 (diff)
[FIX] crm : fix and add data for pls settings and use null value instead of empty for phone and email state fields
This commit applies multiples things: - Fix PLS settings that were not loaded correctly (was not using technical field names) - Add data for PLS settings to check all optional fields and set the start date. - use null value instead of empty for phone and email state fields to lessen the DB storage - set pls start date required Task ID: 2044539 PR #37413
Diffstat (limited to 'addons/crm/data')
-rw-r--r--addons/crm/data/crm_lead_prediction_data.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/crm/data/crm_lead_prediction_data.xml b/addons/crm/data/crm_lead_prediction_data.xml
index f390b6e6138..42a2e8e34d9 100644
--- a/addons/crm/data/crm_lead_prediction_data.xml
+++ b/addons/crm/data/crm_lead_prediction_data.xml
@@ -20,6 +20,14 @@
<record id="frequency_field_lang_id" model="crm.lead.scoring.frequency.field">
<field name="field_id" eval="ref('crm.field_crm_lead__lang_id')"/>
</record>
+ <record id="crm_pls_fields_param" model="ir.config_parameter">
+ <field name="key">crm.pls_fields</field>
+ <field name="value" eval="'state_id,country_id,phone_state,email_state,source_id'"/>
+ </record>
+ <record id="crm_pls_start_date_param" model="ir.config_parameter">
+ <field name="key">crm.pls_start_date</field>
+ <field name="value" eval="DateTime.now().strftime('%Y-%m-%d')"/>
+ </record>
</data>
<record id="website_crm_score_cron" model="ir.cron">