crm_lead_prediction_data.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <odoo>
  3. <data noupdate="1">
  4. <!-- Lead scoring frequency fields -->
  5. <record id="frequency_field_state_id" model="crm.lead.scoring.frequency.field">
  6. <field name="field_id" ref="crm.field_crm_lead__state_id"/>
  7. </record>
  8. <record id="frequency_field_country_id" model="crm.lead.scoring.frequency.field">
  9. <field name="field_id" ref="crm.field_crm_lead__country_id"/>
  10. </record>
  11. <record id="frequency_field_phone_state" model="crm.lead.scoring.frequency.field">
  12. <field name="field_id" ref="crm.field_crm_lead__phone_state"/>
  13. </record>
  14. <record id="frequency_field_email_state" model="crm.lead.scoring.frequency.field">
  15. <field name="field_id" ref="crm.field_crm_lead__email_state"/>
  16. </record>
  17. <record id="frequency_field_source_id" model="crm.lead.scoring.frequency.field">
  18. <field name="field_id" ref="crm.field_crm_lead__source_id"/>
  19. </record>
  20. <record id="frequency_field_lang_id" model="crm.lead.scoring.frequency.field">
  21. <field name="field_id" ref="crm.field_crm_lead__lang_id"/>
  22. </record>
  23. <record id="frequency_field_tag_ids" model="crm.lead.scoring.frequency.field">
  24. <field name="field_id" ref="crm.field_crm_lead__tag_ids"/>
  25. </record>
  26. <record id="crm_pls_fields_param" model="ir.config_parameter">
  27. <field name="key">crm.pls_fields</field>
  28. <field name="value" eval="'phone_state,email_state'"/>
  29. </record>
  30. <record id="crm_pls_start_date_param" model="ir.config_parameter">
  31. <field name="key">crm.pls_start_date</field>
  32. <field name="value" eval="(datetime.now() - timedelta(days=8)).strftime('%Y-%m-%d')"/>
  33. </record>
  34. </data>
  35. <record id="website_crm_score_cron" model="ir.cron">
  36. <field name="name">Predictive Lead Scoring: Recompute Automated Probabilities</field>
  37. <field name="model_id" ref="model_crm_lead"/>
  38. <field name="state">code</field>
  39. <field name="code">model._cron_update_automated_probabilities()</field>
  40. <field name="interval_number">1</field>
  41. <field name="interval_type">days</field>
  42. <field name="numbercall">-1</field>
  43. <field name="active" eval="False"/>
  44. <field name="doall" eval="False"/>
  45. </record>
  46. </odoo>