event_question_demo.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo><data>
  3. <!-- EVENT TYPE SPECIFIC -->
  4. <record id="event_type_data_conference_question_0" model="event.question">
  5. <field name="title">Participate in Social Event</field>
  6. <field name="once_per_order" eval="False"/>
  7. <field name="event_type_id" ref="event.event_type_data_conference"/>
  8. </record>
  9. <record id="event_type_data_conference_question_0_answer_0" model="event.question.answer">
  10. <field name="name">Yes</field>
  11. <field name="sequence">1</field>
  12. <field name="question_id" ref="website_event_questions.event_type_data_conference_question_0"/>
  13. </record>
  14. <record id="event_type_data_conference_question_0_answer_1" model="event.question.answer">
  15. <field name="name">No</field>
  16. <field name="sequence">2</field>
  17. <field name="question_id" ref="website_event_questions.event_type_data_conference_question_0"/>
  18. </record>
  19. <!-- EVENT SPECIFIC -->
  20. <record id="event_0_question_0" model="event.question">
  21. <field name="title">Meal Type</field>
  22. <field name="question_type">simple_choice</field>
  23. <field name="once_per_order" eval="False"/>
  24. <field name="event_id" ref="event.event_0"/>
  25. </record>
  26. <record id="event_0_question_0_answer_0" model="event.question.answer">
  27. <field name="name">Mixed</field>
  28. <field name="sequence">1</field>
  29. <field name="question_id" ref="website_event_questions.event_0_question_0"/>
  30. </record>
  31. <record id="event_0_question_0_answer_1" model="event.question.answer">
  32. <field name="name">Vegetarian</field>
  33. <field name="sequence">2</field>
  34. <field name="question_id" ref="website_event_questions.event_0_question_0"/>
  35. </record>
  36. <record id="event_0_question_0_answer_2" model="event.question.answer">
  37. <field name="name">Pastafarian</field>
  38. <field name="sequence">3</field>
  39. <field name="question_id" ref="website_event_questions.event_0_question_0"/>
  40. </record>
  41. <record id="event_0_question_1" model="event.question">
  42. <field name="title">Allergies</field>
  43. <field name="question_type">text_box</field>
  44. <field name="once_per_order" eval="False"/>
  45. <field name="event_id" ref="event.event_0"/>
  46. </record>
  47. <record id="event_0_question_2" model="event.question">
  48. <field name="title">How did you learn about this event?</field>
  49. <field name="question_type">simple_choice</field>
  50. <field name="once_per_order" eval="True"/>
  51. <field name="event_id" ref="event.event_0"/>
  52. </record>
  53. <record id="event_0_question_2_answer_0" model="event.question.answer">
  54. <field name="name">Our website</field>
  55. <field name="sequence">1</field>
  56. <field name="question_id" ref="website_event_questions.event_0_question_2"/>
  57. </record>
  58. <record id="event_0_question_2_answer_1" model="event.question.answer">
  59. <field name="name">Commercials</field>
  60. <field name="sequence">2</field>
  61. <field name="question_id" ref="website_event_questions.event_0_question_2"/>
  62. </record>
  63. <record id="event_0_question_2_answer_2" model="event.question.answer">
  64. <field name="name">A friend</field>
  65. <field name="sequence">3</field>
  66. <field name="question_id" ref="website_event_questions.event_0_question_2"/>
  67. </record>
  68. <!-- Questions of: "OpenWood: Furniture Collection Online Reveal" -->
  69. <record id="event_7_question_0" model="event.question">
  70. <field name="title">Which field are you working in</field>
  71. <field name="question_type">simple_choice</field>
  72. <field name="once_per_order" eval="False"/>
  73. <field name="event_id" ref="event.event_7"/>
  74. </record>
  75. <record id="event_7_question_0_answer_0" model="event.question.answer">
  76. <field name="name">Consumers</field>
  77. <field name="sequence">1</field>
  78. <field name="question_id" ref="website_event_questions.event_7_question_0"/>
  79. </record>
  80. <record id="event_7_question_0_answer_1" model="event.question.answer">
  81. <field name="name">Sales</field>
  82. <field name="sequence">2</field>
  83. <field name="question_id" ref="website_event_questions.event_7_question_0"/>
  84. </record>
  85. <record id="event_7_question_0_answer_2" model="event.question.answer">
  86. <field name="name">Research</field>
  87. <field name="sequence">3</field>
  88. <field name="question_id" ref="website_event_questions.event_7_question_0"/>
  89. </record>
  90. <record id="event_7_question_1" model="event.question">
  91. <field name="title">How did you hear about us ?</field>
  92. <field name="question_type">text_box</field>
  93. <field name="once_per_order" eval="True"/>
  94. <field name="event_id" ref="event.event_7"/>
  95. </record>
  96. </data></odoo>