summaryrefslogtreecommitdiff
path: root/addons/website_event_questions/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-08-17 13:11:45 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-17 16:29:52 +0000
commit040c43945082bf26b7e2edf29d2d7e45eea7f58b (patch)
tree8b4a1763413aebd0db0d52dca7000cd43628f027 /addons/website_event_questions/data
parent5ee37a42f70d3ec1d2ed775119d673cbbfae9a66 (diff)
[IMP] test_event_full: improve full tour registration test
Adding some steps and checks, notably * add questions and fill them while registering; * in unit test launching tour, check content of registration as well as visitor; LINKS Task ID-2169118 odoo/odoo#55967 odoo/enterprise#12438 X-original-commit: 83f5c49f8f6734ab2beb9347029cbb69d154d15d
Diffstat (limited to 'addons/website_event_questions/data')
-rw-r--r--addons/website_event_questions/data/event_question_demo.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/website_event_questions/data/event_question_demo.xml b/addons/website_event_questions/data/event_question_demo.xml
index 021763bd8a3..16772d46bb3 100644
--- a/addons/website_event_questions/data/event_question_demo.xml
+++ b/addons/website_event_questions/data/event_question_demo.xml
@@ -66,4 +66,34 @@
<field name="sequence">3</field>
<field name="question_id" ref="website_event_questions.event_0_question_2"/>
</record>
+
+ <!-- Questions of: "OpenWood: Furniture Collection Online Reveal" -->
+ <record id="event_7_question_0" model="event.question">
+ <field name="title">Which field are you working in</field>
+ <field name="question_type">simple_choice</field>
+ <field name="once_per_order" eval="False"/>
+ <field name="event_id" ref="event.event_7"/>
+ </record>
+ <record id="event_7_question_0_answer_0" model="event.question.answer">
+ <field name="name">Consumers</field>
+ <field name="sequence">1</field>
+ <field name="question_id" ref="website_event_questions.event_7_question_0"/>
+ </record>
+ <record id="event_7_question_0_answer_1" model="event.question.answer">
+ <field name="name">Sales</field>
+ <field name="sequence">2</field>
+ <field name="question_id" ref="website_event_questions.event_7_question_0"/>
+ </record>
+ <record id="event_7_question_0_answer_2" model="event.question.answer">
+ <field name="name">Research</field>
+ <field name="sequence">3</field>
+ <field name="question_id" ref="website_event_questions.event_7_question_0"/>
+ </record>
+ <record id="event_7_question_1" model="event.question">
+ <field name="title">How did you hear about us ?</field>
+ <field name="question_type">text_box</field>
+ <field name="once_per_order" eval="True"/>
+ <field name="event_id" ref="event.event_7"/>
+ </record>
+
</data></odoo>