Skip to content
Permalink
Browse files

[IMP] event_crm: add simple demo data

Add demo data to test simple use case faster.

task-2166679
  • Loading branch information
jeh-odoo committed Feb 3, 2020
1 parent 05f6209 commit ef4984ebe99a783fa6dd872fd483b5fd1efc0baa
@@ -15,6 +15,9 @@
'views/crm_lead_views.xml',
'views/event_crm_views.xml',
],
'demo': [
'data/event_crm_demo.xml',
],
'installable': True,
'auto_install': True,
}
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Event CRM Rule 0 -->
<record id="event_lead_rule_0" model="event.lead.rule">
<field name="name">Rule on @example.com</field>
<field name="event_id" ref="event.event_5"/>
<field name="event_registration_filter">[('email','ilike','@example.com')]</field>
<field name="lead_user_id" ref="base.user_admin"/>
<field name="lead_tag_ids" eval="[(6, 0, [ref('sales_team.categ_oppor8')])]"/>
</record>

<record id="event_registration_0_rule_0" model="event.registration">
<field name="name">Jean-Marc</field>
<field name="email">jean-marc@example.com</field>
<field name="event_id" ref="event.event_5"/>
</record>
<record id="event_registration_1_rule_0" model="event.registration">
<field name="name">Jean-Luc</field>
<field name="email">jean-luc@test.com</field>
<field name="event_id" ref="event.event_5"/>
</record>

</data>
</odoo>
@@ -11,6 +11,9 @@
'data': [
'views/event_crm_views.xml',
],
'demo': [
'data/event_crm_demo.xml',
],
'installable': True,
'auto_install': True,
}
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<odoo>
<data>
<!-- Event CRM Rule 1 -->
<record id="event_lead_rule_1" model="event.lead.rule">
<field name="name">Rule per order</field>
<field name="lead_creation_basis">order</field>
<field name="event_id" ref="event.event_0"/>
<field name="lead_user_id" ref="base.user_demo"/>
<field name="lead_tag_ids" eval="[(6, 0, [ref('sales_team.categ_oppor3')]),(6, 0, [ref('sales_team.categ_oppor6')])]"/>
</record>
</data>
</odoo>

0 comments on commit ef4984e

Please sign in to comment.
You can’t perform that action at this time.