diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-01-28 17:57:50 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-01-30 15:18:10 +0000 |
| commit | 90959360d4ec8b8f28ac912fde4169ea0ee3d3d4 (patch) | |
| tree | 1802b2b66907faa48a3a588ca2dd04d66984db8d /addons/website_event_questions/data | |
| parent | cb928ed6133bc3d2104fbf586bba5cae2a482524 (diff) | |
[IMP] event(_sale/_question): slightly improve demo data
PURPOSE
This commit is part of ticket model support directly in event application.
SPECIFICATIONS
Some demo data is updated in order to be able to show directly tickets
feature in event, with some registrations already configured. Some basic
demo for questions is also added on first event demo in order to have a
complex event usable in demo mode.
LINKS
Task ID 2177281
Community PR #43488
Diffstat (limited to 'addons/website_event_questions/data')
| -rw-r--r-- | addons/website_event_questions/data/event_demo.xml | 23 | ||||
| -rw-r--r-- | addons/website_event_questions/data/event_registration_demo.xml | 18 |
2 files changed, 41 insertions, 0 deletions
diff --git a/addons/website_event_questions/data/event_demo.xml b/addons/website_event_questions/data/event_demo.xml new file mode 100644 index 00000000000..59f500e3f01 --- /dev/null +++ b/addons/website_event_questions/data/event_demo.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo><data> + <record id="event_0_question_0" model="event.question"> + <field name="title">Meal Type</field> + <field name="is_individual" eval="False"/> + <field name="event_id" ref="event.event_0"/> + </record> + <record id="event_0_question_0_answer_0" model="event.answer"> + <field name="name">Mixed</field> + <field name="sequence">1</field> + <field name="question_id" ref="website_event_questions.event_0_question_0"/> + </record> + <record id="event_0_question_0_answer_1" model="event.answer"> + <field name="name">Vegetarian</field> + <field name="sequence">2</field> + <field name="question_id" ref="website_event_questions.event_0_question_0"/> + </record> + <record id="event_0_question_0_answer_2" model="event.answer"> + <field name="name">Pastafarian</field> + <field name="sequence">3</field> + <field name="question_id" ref="website_event_questions.event_0_question_0"/> + </record> +</data></odoo>
\ No newline at end of file diff --git a/addons/website_event_questions/data/event_registration_demo.xml b/addons/website_event_questions/data/event_registration_demo.xml new file mode 100644 index 00000000000..ac9c894d250 --- /dev/null +++ b/addons/website_event_questions/data/event_registration_demo.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo><data> + <record id="event.event_registration_0_0" model="event.registration"> + <field name="answer_ids" eval="[ + (5, 0), + (4, ref('website_event_questions.event_0_question_0_answer_0'))]"/> + </record> + <record id="event.event_registration_0_1" model="event.registration"> + <field name="answer_ids" eval="[ + (5, 0), + (4, ref('website_event_questions.event_0_question_0_answer_1'))]"/> + </record> + <record id="event.event_registration_0_2" model="event.registration"> + <field name="answer_ids" eval="[ + (5, 0), + (4, ref('website_event_questions.event_0_question_0_answer_2'))]"/> + </record> +</data></odoo>
\ No newline at end of file |
