From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/survey/data/ir_actions_data.xml | 16 + addons/survey/data/mail_template_data.xml | 78 +++ addons/survey/data/survey.user_input.line.csv | 107 ++++ addons/survey/data/survey_demo_certification.xml | 399 +++++++++++++++ addons/survey/data/survey_demo_conditional.xml | 474 ++++++++++++++++++ addons/survey/data/survey_demo_feedback.xml | 222 +++++++++ addons/survey/data/survey_demo_quiz.xml | 582 ++++++++++++++++++++++ addons/survey/data/survey_demo_quiz_userinput.xml | 571 +++++++++++++++++++++ addons/survey/data/survey_demo_user.xml | 9 + 9 files changed, 2458 insertions(+) create mode 100644 addons/survey/data/ir_actions_data.xml create mode 100644 addons/survey/data/mail_template_data.xml create mode 100644 addons/survey/data/survey.user_input.line.csv create mode 100644 addons/survey/data/survey_demo_certification.xml create mode 100644 addons/survey/data/survey_demo_conditional.xml create mode 100644 addons/survey/data/survey_demo_feedback.xml create mode 100644 addons/survey/data/survey_demo_quiz.xml create mode 100644 addons/survey/data/survey_demo_quiz_userinput.xml create mode 100644 addons/survey/data/survey_demo_user.xml (limited to 'addons/survey/data') diff --git a/addons/survey/data/ir_actions_data.xml b/addons/survey/data/ir_actions_data.xml new file mode 100644 index 00000000..7e0473fd --- /dev/null +++ b/addons/survey/data/ir_actions_data.xml @@ -0,0 +1,16 @@ + + + + + Survey: Clean test answers + ir.actions.server + + + code + +if records: + env['survey.user_input'].search([('survey_id', 'in', records.ids), ('test_entry', '=', 'True')]).unlink() + + + + \ No newline at end of file diff --git a/addons/survey/data/mail_template_data.xml b/addons/survey/data/mail_template_data.xml new file mode 100644 index 00000000..1e138281 --- /dev/null +++ b/addons/survey/data/mail_template_data.xml @@ -0,0 +1,78 @@ + + + + + Survey: Invite + + Participate to ${object.survey_id.title} survey + ${(object.partner_id.email_formatted or object.email) |safe} + +
+

+ Dear ${object.partner_id.name or 'participant'}

+ % if object.survey_id.certification: + You have been invited to take a new certification. + % else: + We are conducting a survey and your response would be appreciated. + % endif +

+ % if object.deadline: + Please answer the survey for ${format_date(object.deadline)}.

+ % endif + Thank you for your participation. +

+
+
+ ${object.partner_id.lang} + +
+ + + + Survey: Send certification by email + + Certification: ${object.survey_id.display_name} + ${(object.survey_id.create_uid.email_formatted or user.email_formatted or user.company_id.catchall_formatted) |safe} + ${(object.partner_id.email_formatted or object.email) |safe} + +
+ + + + +
+ + + + Certification: ${object.survey_id.display_name} +
+ + + + +
+

Dear ${object.partner_id.name or 'participant'}

+

+ Here is, in attachment, your certification document for + ${object.survey_id.display_name} +

+

Congratulations for succeeding the test!

+
+
+
+ + Certification Document + ${object.partner_id.lang} + +
+
+
diff --git a/addons/survey/data/survey.user_input.line.csv b/addons/survey/data/survey.user_input.line.csv new file mode 100644 index 00000000..1d75f750 --- /dev/null +++ b/addons/survey/data/survey.user_input.line.csv @@ -0,0 +1,107 @@ +id,user_input_id:id,question_id:id,skipped,answer_type,value_char_box,value_numerical_box,value_date,value_datetime,value_text_box,suggested_answer_id:id,matrix_row_id:id +survey_answer_1_p1_q1,survey_answer_1,survey_feedback_p1_q1,False,char_box,Brussels,,,,,, +survey_answer_1_p1_q2,survey_answer_1,survey_feedback_p1_q2,False,date,,,1980-01-11,,,, +survey_answer_1_p1_q3,survey_answer_1,survey_feedback_p1_q3,False,suggestion,,,,,,survey_feedback_p1_q3_sug3, +survey_answer_1_p1_q4,survey_answer_1,survey_feedback_p1_q4,False,numerical_box,,4,,,,, +survey_answer_1_p2_q1_1,survey_answer_1,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug1, +survey_answer_1_p2_q1_2,survey_answer_1,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug2, +survey_answer_1_p2_q2_1,survey_answer_1,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row1 +survey_answer_1_p2_q2_2,survey_answer_1,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row2 +survey_answer_1_p2_q2_3,survey_answer_1,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col2,survey_feedback_p2_q2_row3 +survey_answer_1_p2_q2_4,survey_answer_1,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col4,survey_feedback_p2_q2_row4 +survey_answer_1_p2_q2_5,survey_answer_1,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col2,survey_feedback_p2_q2_row5 +survey_answer_1_p2_q3,survey_answer_1,survey_feedback_p2_q3,False,text_box,,,,,Thanks for the good quality of your products,, +survey_answer_2_p1_q1,survey_answer_2,survey_feedback_p1_q1,False,char_box,Paris,,,,,, +survey_answer_2_p1_q2,survey_answer_2,survey_feedback_p1_q2,True,,,,,,,, +survey_answer_2_p1_q3,survey_answer_2,survey_feedback_p1_q3,False,suggestion,,,,,,survey_feedback_p1_q3_sug2, +survey_answer_2_p1_q4,survey_answer_2,survey_feedback_p1_q4,False,numerical_box,,10,,,,, +survey_answer_2_p2_q1_1,survey_answer_2,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug2, +survey_answer_2_p2_q1_2,survey_answer_2,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug3, +survey_answer_2_p2_q1_3,survey_answer_2,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug4, +survey_answer_2_p2_q2_1,survey_answer_2,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col4,survey_feedback_p2_q2_row1 +survey_answer_2_p2_q2_2,survey_answer_2,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row2 +survey_answer_2_p2_q2_3,survey_answer_2,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row3 +survey_answer_2_p2_q2_4,survey_answer_2,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col4,survey_feedback_p2_q2_row4 +survey_answer_2_p2_q2_5,survey_answer_2,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row5 +survey_answer_2_p2_q3,survey_answer_2,survey_feedback_p2_q3,False,text_box,,,,,I really appreciate your products. They are awesome !!,, +survey_answer_3_p1_q1,survey_answer_3,survey_feedback_p1_q1,False,char_box,New York,,,,,, +survey_answer_3_p1_q2,survey_answer_3,survey_feedback_p1_q2,False,date,,,1966-06-15,,,, +survey_answer_3_p1_q3,survey_answer_3,survey_feedback_p1_q3,False,suggestion,,,,,,survey_feedback_p1_q3_sug4, +survey_answer_3_p1_q4,survey_answer_3,survey_feedback_p1_q4,False,numerical_box,,1,,,,, +survey_answer_3_p2_q1_1,survey_answer_3,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug7, +survey_answer_3_p2_q1_2,survey_answer_3,survey_feedback_p2_q1,False,suggestion,,,,,,survey_feedback_p2_q1_sug8, +survey_answer_3_p2_q2_1,survey_answer_3,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col1,survey_feedback_p2_q2_row1 +survey_answer_3_p2_q2_2,survey_answer_3,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col2,survey_feedback_p2_q2_row2 +survey_answer_3_p2_q2_3,survey_answer_3,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col1,survey_feedback_p2_q2_row3 +survey_answer_3_p2_q2_4,survey_answer_3,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col3,survey_feedback_p2_q2_row4 +survey_answer_3_p2_q2_5,survey_answer_3,survey_feedback_p2_q2,False,suggestion,,,,,,survey_feedback_p2_q2_col1,survey_feedback_p2_q2_row5 +survey_answer_3_p2_q3,survey_answer_3,survey_feedback_p2_q3,False,text_box,,,,,The customizable desk received is not the one I ordered on your website and the quality is very poor ! Really disappointed.,, +survey_vendor_certification_answer_1_p1_q1,survey_vendor_certification_answer_1,vendor_certification_page_1_question_1,False,suggestion,,,,,,vendor_certification_page_1_question_1_choice_2, +survey_vendor_certification_answer_1_p1_q2_1,survey_vendor_certification_answer_1,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_1, +survey_vendor_certification_answer_1_p1_q2_2,survey_vendor_certification_answer_1,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_3, +survey_vendor_certification_answer_1_p1_q2_3,survey_vendor_certification_answer_1,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_4, +survey_vendor_certification_answer_1_p1_q3_1,survey_vendor_certification_answer_1,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_1, +survey_vendor_certification_answer_1_p1_q3_2,survey_vendor_certification_answer_1,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_3, +survey_vendor_certification_answer_1_p1_q3_3,survey_vendor_certification_answer_1,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_4, +survey_vendor_certification_answer_1_p1_q4,survey_vendor_certification_answer_1,vendor_certification_page_1_question_4,False,suggestion,,,,,,vendor_certification_page_1_question_4_choice_2, +survey_vendor_certification_answer_1_p1_q5,survey_vendor_certification_answer_1,vendor_certification_page_1_question_5,False,text_box,,,,,I think it misses a product but I don't know what,, +survey_vendor_certification_answer_1_p2_q1,survey_vendor_certification_answer_1,vendor_certification_page_2_question_1,False,suggestion,,,,,,vendor_certification_page_2_question_1_choice_4, +survey_vendor_certification_answer_1_p2_q2_1,survey_vendor_certification_answer_1,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_1, +survey_vendor_certification_answer_1_p2_q2_2,survey_vendor_certification_answer_1,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_2, +survey_vendor_certification_answer_1_p2_q2_3,survey_vendor_certification_answer_1,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_4, +survey_vendor_certification_answer_1_p2_q3,survey_vendor_certification_answer_1,vendor_certification_page_2_question_3,False,suggestion,,,,,,vendor_certification_page_2_question_3_choice_3, +survey_vendor_certification_answer_1_p3_q1,survey_vendor_certification_answer_1,vendor_certification_page_3_question_1,False,numerical_box,,30,,,,, +survey_vendor_certification_answer_1_p3_q2,survey_vendor_certification_answer_1,vendor_certification_page_3_question_2,False,date,,,2020-01-08,,,, +survey_vendor_certification_answer_1_p3_q3,survey_vendor_certification_answer_1,vendor_certification_page_3_question_3,False,datetime,,,,2021-01-07 01:00:01,,, +survey_vendor_certification_answer_1_p3_q4,survey_vendor_certification_answer_1,vendor_certification_page_3_question_4,False,date,,,2020-01-01,,,, +survey_vendor_certification_answer_1_p3_q5,survey_vendor_certification_answer_1,vendor_certification_page_3_question_5,False,datetime,,,,2021-01-01 13:00:01,,, +survey_vendor_certification_answer_1_p3_q6,survey_vendor_certification_answer_1,vendor_certification_page_3_question_6,False,numerical_box,,1000,,,,, +survey_vendor_certification_answer_2_p1_q1,survey_vendor_certification_answer_2,vendor_certification_page_1_question_1,False,suggestion,,,,,,vendor_certification_page_1_question_1_choice_2, +survey_vendor_certification_answer_2_p1_q2_1,survey_vendor_certification_answer_2,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_1, +survey_vendor_certification_answer_2_p1_q2_2,survey_vendor_certification_answer_2,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_3, +survey_vendor_certification_answer_2_p1_q3_1,survey_vendor_certification_answer_2,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_1, +survey_vendor_certification_answer_2_p1_q3_2,survey_vendor_certification_answer_2,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_3, +survey_vendor_certification_answer_2_p1_q4,survey_vendor_certification_answer_2,vendor_certification_page_1_question_4,False,suggestion,,,,,,vendor_certification_page_1_question_4_choice_2, +survey_vendor_certification_answer_2_p1_q5,survey_vendor_certification_answer_2,vendor_certification_page_1_question_5,True,,,,,,,, +survey_vendor_certification_answer_2_p2_q1,survey_vendor_certification_answer_2,vendor_certification_page_2_question_1,False,suggestion,,,,,,vendor_certification_page_2_question_1_choice_4, +survey_vendor_certification_answer_2_p2_q2_1,survey_vendor_certification_answer_2,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_1, +survey_vendor_certification_answer_2_p2_q2_2,survey_vendor_certification_answer_2,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_2, +survey_vendor_certification_answer_2_p2_q2_3,survey_vendor_certification_answer_2,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_4, +survey_vendor_certification_answer_2_p2_q3,survey_vendor_certification_answer_2,vendor_certification_page_2_question_3,False,suggestion,,,,,,vendor_certification_page_2_question_3_choice_4, +survey_vendor_certification_answer_2_p3_q1,survey_vendor_certification_answer_2,vendor_certification_page_3_question_1,False,numerical_box,,30,,,,, +survey_vendor_certification_answer_2_p3_q2,survey_vendor_certification_answer_2,vendor_certification_page_3_question_2,False,date,,,2020-01-09,,,, +survey_vendor_certification_answer_2_p3_q3,survey_vendor_certification_answer_2,vendor_certification_page_3_question_3,False,datetime,,,,2021-01-07 01:00:01,,, +survey_vendor_certification_answer_2_p3_q4,survey_vendor_certification_answer_2,vendor_certification_page_3_question_4,True,,,,,,,, +survey_vendor_certification_answer_2_p3_q5,survey_vendor_certification_answer_2,vendor_certification_page_3_question_5,True,,,,,,,, +survey_vendor_certification_answer_2_p3_q6,survey_vendor_certification_answer_2,vendor_certification_page_3_question_6,False,numerical_box,,0,,,,, +survey_vendor_certification_answer_3_p1_q1,survey_vendor_certification_answer_3,vendor_certification_page_1_question_1,False,suggestion,,,,,,vendor_certification_page_1_question_1_choice_2, +survey_vendor_certification_answer_3_p1_q2_1,survey_vendor_certification_answer_3,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_1, +survey_vendor_certification_answer_3_p1_q2_2,survey_vendor_certification_answer_3,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_4, +survey_vendor_certification_answer_3_p1_q3_1,survey_vendor_certification_answer_3,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_1, +survey_vendor_certification_answer_3_p1_q3_2,survey_vendor_certification_answer_3,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_4, +survey_vendor_certification_answer_3_p1_q4,survey_vendor_certification_answer_3,vendor_certification_page_1_question_4,False,suggestion,,,,,,vendor_certification_page_1_question_4_choice_2, +survey_vendor_certification_answer_3_p1_q5,survey_vendor_certification_answer_3,vendor_certification_page_1_question_5,True,,,,,,,, +survey_vendor_certification_answer_3_p2_q1,survey_vendor_certification_answer_3,vendor_certification_page_2_question_1,False,suggestion,,,,,,vendor_certification_page_2_question_1_choice_4, +survey_vendor_certification_answer_3_p2_q2_2,survey_vendor_certification_answer_3,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_1, +survey_vendor_certification_answer_3_p2_q2_3,survey_vendor_certification_answer_3,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_4, +survey_vendor_certification_answer_3_p2_q3,survey_vendor_certification_answer_3,vendor_certification_page_2_question_3,False,suggestion,,,,,,vendor_certification_page_2_question_3_choice_2, +survey_vendor_certification_answer_3_p3_q1,survey_vendor_certification_answer_3,vendor_certification_page_3_question_1,False,numerical_box,,30,,,,, +survey_vendor_certification_answer_3_p3_q2,survey_vendor_certification_answer_3,vendor_certification_page_3_question_2,False,date,,,2020-01-08,,,, +survey_vendor_certification_answer_3_p3_q3,survey_vendor_certification_answer_3,vendor_certification_page_3_question_3,False,datetime,,,,2021-01-06 23:59:59,,, +survey_vendor_certification_answer_3_p3_q4,survey_vendor_certification_answer_3,vendor_certification_page_3_question_4,True,,,,,,,, +survey_vendor_certification_answer_3_p3_q5,survey_vendor_certification_answer_3,vendor_certification_page_3_question_5,True,,,,,,,, +survey_vendor_certification_answer_3_p3_q6,survey_vendor_certification_answer_3,vendor_certification_page_3_question_6,True,,,,,,,, +survey_vendor_certification_answer_4_p1_q1,survey_vendor_certification_answer_4,vendor_certification_page_1_question_1,False,suggestion,,,,,,vendor_certification_page_1_question_1_choice_1, +survey_vendor_certification_answer_4_p1_q2,survey_vendor_certification_answer_4,vendor_certification_page_1_question_2,False,suggestion,,,,,,vendor_certification_page_1_question_2_choice_3, +survey_vendor_certification_answer_4_p1_q3,survey_vendor_certification_answer_4,vendor_certification_page_1_question_3,False,suggestion,,,,,,vendor_certification_page_1_question_3_choice_2, +survey_vendor_certification_answer_4_p1_q4,survey_vendor_certification_answer_4,vendor_certification_page_1_question_4,False,suggestion,,,,,,vendor_certification_page_1_question_4_choice_4, +survey_vendor_certification_answer_4_p1_q5,survey_vendor_certification_answer_4,vendor_certification_page_1_question_5,True,,,,,,,, +survey_vendor_certification_answer_4_p2_q1,survey_vendor_certification_answer_4,vendor_certification_page_2_question_1,False,suggestion,,,,,,vendor_certification_page_2_question_1_choice_2, +survey_vendor_certification_answer_4_p2_q2,survey_vendor_certification_answer_4,vendor_certification_page_2_question_2,False,suggestion,,,,,,vendor_certification_page_2_question_2_choice_4, +survey_vendor_certification_answer_4_p2_q3,survey_vendor_certification_answer_4,vendor_certification_page_2_question_3,False,suggestion,,,,,,vendor_certification_page_2_question_3_choice_5, +survey_vendor_certification_answer_4_p3_q1,survey_vendor_certification_answer_4,vendor_certification_page_3_question_1,False,numerical_box,,2,,,,, +survey_vendor_certification_answer_4_p3_q2,survey_vendor_certification_answer_4,vendor_certification_page_3_question_2,False,date,,,2020-01-08,,,, +survey_vendor_certification_answer_4_p3_q3,survey_vendor_certification_answer_4,vendor_certification_page_3_question_3,False,datetime,,,,2021-01-07 01:00:01,,, +survey_vendor_certification_answer_4_p3_q4,survey_vendor_certification_answer_4,vendor_certification_page_3_question_4,False,date,,,2019-12-31,,,, +survey_vendor_certification_answer_4_p3_q5,survey_vendor_certification_answer_4,vendor_certification_page_3_question_5,False,datetime,,,,2021-01-01 13:00:01,,, +survey_vendor_certification_answer_4_p3_q6,survey_vendor_certification_answer_4,vendor_certification_page_3_question_6,True,,,,,,,, diff --git a/addons/survey/data/survey_demo_certification.xml b/addons/survey/data/survey_demo_certification.xml new file mode 100644 index 00000000..54cd42ca --- /dev/null +++ b/addons/survey/data/survey_demo_certification.xml @@ -0,0 +1,399 @@ + + + + + MyCompany Vendor + Congratulations, you are now official vendor of MyCompany + nobody + + + + + + MyCompany Vendor Certification + 4ead4bc8-b8f2-4760-a682-1fde8ddb95ac + open + public + page_per_question + + + scoring_with_answers + + + limited + 10.0 + + 2 +

Test your vendor skills!

+ True + + +
+ + + Products + + 1 + + +

Test your knowledge of your products!

+
+ + + + 2 + Do we sell Acoustic Bloc Screens? + simple_choice + + + + + 1 + No + + + + 2 + Yes + + 2.0 + + + + + 3 + Select all the existing products + multiple_choice + 4 + + + + 1 + Chair floor protection + + 1.0 + + + + 2 + Fanta + -1.0 + + + + 3 + Conference chair + + 1.0 + + + + 4 + Drawer + + 1.0 + + + + 5 + Customizable Lamp + -1.0 + + + + + 4 + Select all the available customizations for our Customizable Desk + multiple_choice + 4 + + + + 1 + Color + + 1.0 + + + + 2 + Height + -1.0 + + + + 3 + Width + + 1.0 + + + + 4 + Legs + + 1.0 + + + + 5 + Number of drawers + -1.0 + + + + + 5 + How many versions of the Corner Desk do we have? + simple_choice + + + + + 1 + 1 + + + + 2 + 2 + + 2.0 + + + + 3 + 3 + + + + 4 + 4 + + + + + 6 + Do you think we have missing products in our catalog? (not rated) + text_box + + + + Prices + + + + 7 + <p>Test your knowledge of our prices.</p> + + + + + 8 + How much do we sell our Cable Management Box? + simple_choice + + + + + 1 + $20 + + + + 2 + $50 + + + + 3 + $80 + + + + 4 + $100 + + 2.0 + + + + 5 + $200 + + + + 6 + $300 + + + + + 9 + Select all the products that sell for $100 or more + multiple_choice + 2 + + + + 1 + Corner Desk Right Sit + 1.0 + + + + + 2 + Desk Combination + 1.0 + + + + + 3 + Cabinet with Doors + -1.0 + + + + 4 + Large Desk + 1.0 + + + + + 5 + Letter Tray + -1.0 + + + + 6 + Office Chair Black + -1.0 + + + + + 10 + What do you think about our prices (not rated)? + simple_choice + + + + + 1 + Very underpriced + + + + 2 + Underpriced + + + + 3 + Correctly priced + + + + 4 + A little bit overpriced + + + + 5 + A lot overpriced + + + + Policies + + + + 11 + <p>Test your knowledge of our policies.</p> + + + + + 12 + How many days is our money-back guarantee? + numerical_box + + 30 + 1.0 + + + + + + 13 + If a customer purchases a product on 6 January 2020, what is the latest day we expect to ship it? + date + + 2020-01-08 + 1.0 + + + + + 14 + If a customer purchases a 1 year warranty on 6 January 2020, when do we expect the warranty to expire? + datetime + + 2021-01-07 00:00:01 + 1.0 + + + + + 15 + What day to you think is best for us to start having an annual sale (not rated)? + date + 0 + + + + + 16 + What day and time do you think most customers are most likely to call customer service (not rated)? + datetime + 0 + + + + + 17 + How many chairs do you think we should aim to sell in a year (not rated)? + numerical_box + 0 + + + + + + douglas.fletcher51@example.com + done + + + + + billy.fox45@example.com + done + + + + + brandon.freeman55@example.com + done + + + + + oscar.morgan11@example.com + done + +
+
diff --git a/addons/survey/data/survey_demo_conditional.xml b/addons/survey/data/survey_demo_conditional.xml new file mode 100644 index 00000000..9201bcdc --- /dev/null +++ b/addons/survey/data/survey_demo_conditional.xml @@ -0,0 +1,474 @@ + + + + + Burger Quiz + burger00-quiz-1234-abcd-344ca2tgb31e + open + public + + scoring_with_answers + 55 + limited + 10.0 + page_per_question + +

Choose your favourite subject and show how good you are. Ready ?

+ +
+ + + + Start + + 1 + + + + + + 2 + Pick a subject + multiple_choice + + + + + 1 + Geography + + + + 2 + History + + + + 3 + Sciences + + + + 4 + Art & Culture + + + + + Geography + + 100 + + + + + + 110 + How long is the White Nile river? + simple_choice + + + + + + + + 1 + 1450 km + + + + 2 + 3700 km + + 10 + + + + 3 + 6650 km + + + + + + 120 + What is the biggest city in the world ? + simple_choice + + + + + + + + 1 + Shanghai + + + + 2 + Tokyo + + 10 + + + + 3 + New York + + + + 4 + Istanbul + + + + + 130 + Which is the highest volcano in Europe ? + simple_choice + + + + + + + + 1 + Mount Teide (Spain - Tenerife) + + + + 2 + Eyjafjallajökull (Iceland) + + + + 3 + Mount Etna (Italy - Sicily) + + + + 4 + Mount Elbrus (Russia) + + 10 + + + + + History + + 200 + + + + + + 210 + When did Genghis Khan die ? + simple_choice + + + + + + + + 1 + 1227 + + 10 + + + + 2 + 1324 + + + + 3 + 1055 + + + + + 220 + Who is the architect of the Great Pyramid of Giza ? + simple_choice + + + + + + + + 1 + Imhotep + + + + 2 + Amenhotep + + + + 3 + Hemiunu + + 10 + + + + 4 + Papyrus + + + + + 230 + How many years did the 100 years war last ? + simple_choice + + + + + + + + 1 + 99 years + + + + 2 + 100 years + + + + 3 + 116 years + + 10 + + + + 4 + 127 years + + + + + Sciences + + 300 + + + + + + 310 + Who received a Nobel prize in Physics for the discovery of neutrino oscillations, which shows that neutrinos have mass ? + multiple_choice + + + + + + + + 1 + Arthur B. McDonald + + 5 + + + + 2 + Peter W. Higgs + + + + 3 + Takaaki Kajita + + 5 + + + + 4 + Willard S. Boyle + + + + + 320 + What is, approximately, the critical mass of plutonium-239 ? + simple_choice + + + + + + + + 1 + 5.7 kg + + + + 2 + 10 kg + + 10 + + + + 3 + 16.2 kg + + + + 4 + 47 kg + + + + + 330 + Can Humans ever directly see a photon ? + simple_choice + + + + + + + + 1 + Yes, that's the only thing a human eye can see. + + 10 + + + + 2 + No, it's to small for the human eye. + + + + + Art & Culture + + 400 + + + + + + 410 + Which Musician is not in the 27th Club ? + multiple_choice + + + + + + + + 1 + Kurt Cobain + + + + 2 + Kim Jong-hyun + + + + 3 + Avicii + + 5 + + + + 4 + Cliff Burton + + 5 + + + + + 420 + Which painting/drawing was not made by Pablo Picasso ? + simple_choice + + + + + + + + + 1 + + + + + + 2 + + + + 10 + + + + 3 + + + + + + 4 + + + + + + + 430 + Which quote is from Jean-Claude Van Damme + simple_choice + + + + + + + + 1 + I’ve never really wanted to go to Japan. Simply because I don’t like eating fish. And I know that’s very popular out there in Africa. + + + + 2 + I am fascinated by air. If you remove the air from the sky, all the birds would fall to the ground. And all the planes, too. + + 10 + + + + 3 + I've been noticing gravity since I was very young ! + + + + 4 + I actually don't like thinking. I think people think I like to think a lot. And I don't. I do not like to think at all. + + +
diff --git a/addons/survey/data/survey_demo_feedback.xml b/addons/survey/data/survey_demo_feedback.xml new file mode 100644 index 00000000..ef23de6b --- /dev/null +++ b/addons/survey/data/survey_demo_feedback.xml @@ -0,0 +1,222 @@ + + + + + Feedback Form + b135640d-14d4-4748-9ef6-344ca256531e + open + public + + page_per_section + +

This survey allows you to give a feedback about your experience with our products. + Filling it helps us improving your experience.

+
+ + + + About you + + 1 + + + +

This section is about general information about you. Answering them helps qualifying your answers.

+
+ + + 2 + Where do you live ? + char_box + + + + + 3 + When is your date of birth ? + date + + + + + 4 + How frequently do you buy products online ? + simple_choice + + + + + + + 1 + Once a day + + + + 2 + Once a week + + + + 3 + Once a month + + + + 4 + Once a year + + + + 5 + How many times did you order products on our website ? + numerical_box + + + + + + About our ecommerce + + 6 + + + +

This section is about our eCommerce experience itself.

+
+ + + 7 + Which of the following words would you use to describe our products ? + multiple_choice + + + + + + + 1 + High quality + + + + 2 + Useful + + + + 3 + Unique + + + + 4 + Good value for money + + + + 5 + Overpriced + + + + 6 + Impractical + + + + 7 + Ineffective + + + + 8 + Poor quality + + + + 8 + What do your think about our new eCommerce ? + matrix + multiple + + + + + 1 + Totally disagree + + + + 2 + Disagree + + + + 3 + Agree + + + + 4 + Totally agree + + + + 1 + The new layout and design is fresh and up-to-date + + + + 2 + It is easy to find the product that I want + + + + 3 + The tool to compare the products is useful to make a choice + + + + 4 + The checkout process is clear and secure + + + + 5 + I have added products to my wishlist + + + + 9 + Do you have any other comments, questions, or concerns ? + text_box + + + + + + + mark.brown23@example.com + done + + + + + billy.fox45@example.com + done + + + + + Evelyne Gargouillis <evelyne@example.com> + done + + + + + Martin Tamarre <martin@example.com> + in_progress + + +
diff --git a/addons/survey/data/survey_demo_quiz.xml b/addons/survey/data/survey_demo_quiz.xml new file mode 100644 index 00000000..6f4ce8a8 --- /dev/null +++ b/addons/survey/data/survey_demo_quiz.xml @@ -0,0 +1,582 @@ + + + + + Quiz about our Company + b137640d-9876-1234-abcd-344ca256531e + open + public + + scoring_with_answers + 55 + page_per_question + +

This small quiz will test your knowledge about our Company. Be prepared !

+ +
+ + + + Who are you ? + + 1 + + + +

Some general information about you. It will be used internally for statistics only.

+
+ + + 2 + What is your email ? + char_box + + + + + + + 3 + What is your nickname ? + char_box + + + + + + 4 + Where are you from ? + char_box + + + + + 5 + How old are you ? +

Just to categorize your answers, don't worry.

+ numerical_box + +
+ + + + Our Company in a few questions ... + + 10 + + + +

Some questions about our company. Do you really know us?

+
+ + + 11 + When is Mitchell Admin born ? + Our famous Leader ! + date + + + + + 12 + When did precisely Marc Demo crop its first apple tree ? + datetime + + + + + 13 + Give the list of all types of wood we sell. + text_box + + + + + + Fruits and vegetables + + 20 + + + +

An apple a day keeps the doctor away.

+
+ + + 21 + Which category does a tomato belong to + "Red" is not a category, I know what you are trying to do ;) + simple_choice + + + + + + + 1 + Fruits + + 20 + + + + 2 + Vegetables + + 10 + + + + 3 + Space stations + + + + 22 + Which of the following would you use to pollinate + simple_choice + + + + + 15 + + + + 1 + Bees + + 20 + + + + 2 + Dogs + + + + 3 + Mooses + + + + 23 + Select trees that made more than 20K sales this year + Our sales people have an advantage, but you can do it ! + multiple_choice + + + + + 20 + + + + 1 + Apple Trees + + 20 + + + + 2 + Lemon Trees + + 10 + + + + 3 + Baobab Trees + -10 + + + + 4 + Cookies + -10 + + + + 24 + A "Citrus" could give you ... + multiple_choice + + + + + 20 + + + + 1 + Pomelos + + 20 + + + + 2 + Grapefruits + + 20 + + + + 3 + Cosmic rays + -10 + + + + 4 + Bricks + -10 + + + + 25 + How often should you water those plants + matrix + simple + + + + + + 1 + Cactus + + + + 2 + Ficus + + + + 1 + Once a month + + + + 2 + Once a week + + + + 26 + When do you harvest those fruits + Best time to do it, is the right time to do it. + matrix + multiple + + + + + + 1 + Apples + + + + 2 + Strawberries + + + + 3 + Clementine + + + + 1 + Spring + + + + 2 + Summer + + + + 3 + Autumn + + + + 4 + Winter + + + + + Trees + + 30 + + + +

+ We like to say that the apple doesn't fall far from the tree, so here are trees. +

+
+
+ + + Dogwood is from which family of trees ? + + 31 + simple_choice + 6 + + + + + + 1 + Pinaceae + + + + + 2 + Ulmaceae + + + + + 3 + Cornaceae + + + 20 + + + + 4 + Salicaceae + + + + + In which country did the bonsai technique develop ? + + 32 + simple_choice + 6 + + + + + + 1 + Japan + + + 20 + + + + 2 + China + + + + + 3 + Vietnam + + + + + 4 + South Korea + + + + + Is the wood of a coniferous hard or soft ? + + 33 + simple_choice + 6 + + +

+
+

+
+
+ + + 1 + Hard + + + + 2 + Soft + + 10 + + + + From which continent is native the Scots pine (pinus sylvestris) ? + + 34 + simple_choice + + + +

+
+

+
+
+ + + 1 + Africa + + + + + 2 + Asia + + 20 + + + + + 3 + Europe + + + + + 4 + South America + + + + + In the list below, select all the coniferous. + + 35 + multiple_choice + 6 + + + + + + 1 + Douglas Fir + + + 5 + + + + 2 + Norway Spruce + + + 5 + + + + 3 + European Yew + + + 5 + + + + 4 + Mountain Pine + + + 5 + + + + After watching this video, will you swear that you are not going to procrastinate to trim your hedge this year ? + + 36 + simple_choice + 6 + +
+
+
+
+ +

+
+ + + + + 1 + Yes + + 10 + + + + 2 + No + + + + 3 + Perhaps + -10 + + + + + Your feeling + + 40 + + + +

We may be interested by your input.

+
+ + + 41 + What do you think about this survey ? + If you don't like us, please try to be as objective as possible. + simple_choice + + + + + + + 1 + Good + + + + 2 + Not Good, Not Bad + + + + 3 + Iznogoud + + + + 4 + I have no idea, I'm a dog! + + diff --git a/addons/survey/data/survey_demo_quiz_userinput.xml b/addons/survey/data/survey_demo_quiz_userinput.xml new file mode 100644 index 00000000..62335989 --- /dev/null +++ b/addons/survey/data/survey_demo_quiz_userinput.xml @@ -0,0 +1,571 @@ + + + + + + mark.brown23@example.com + done + + + + + admin@yourcompany.example.com + done + + + + + joel.willis63@example.com + done + + + + + brandon.freeman55@example.com + done + + + + + colleen.diaz83@example.com + in_progress + + + + + travis.mendoza24@example.com + new + + + + + + + char_box + mark.brown23@example.com + + + + + char_box + Mark Brown + + + + + char_box + Brussels + + + + + numerical_box + 36 + + + + + + date + + + + + + datetime + + + + + + text_box + Oak, ash, pine + + + + + + suggestion + + True + 2 + + + + + suggestion + + True + 2 + + + + + char_box + Mooses ?? Really ? + + + + + suggestion + + True + 1 + + + + + suggestion + + + + + + suggestion + + True + 2 + + + + + suggestion + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + + + + char_box + admin@yourcompany.example.com + + + + + char_box + Mitchell Admin + + + + + char_box + Ottawa + + + + + numerical_box + 48 + + + + + + date + + + + + + datetime + + + + + + + + + + + + suggestion + + True + 1 + + + + + suggestion + + + + + + char_box + Mooses are best pollinators of the world ! + + + + + suggestion + + True + 2 + + + + + char_box + I sold a 30K raspberry tree once. + + + + + suggestion + + True + 2 + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + + + + char_box + joel.willis63@example.com + + + + + char_box + Joël Willis + + + + + char_box + Brussels + + + + + numerical_box + 28 + + + + + + date + + + + + + datetime + + + + + + text_box + Oak, fur, pine, red pine + + + + + + char_box + Both fruit (seeds, par of the plant) and vegetable (culinary use), obviously. + + + + + suggestion + + True + 2 + + + + + suggestion + + True + 2 + + + + + suggestion + + True + 1 + + + + + char_box + You forgot the strawberry tree. + + + + + suggestion + + True + 2 + + + + + suggestion + + True + 2 + + + + + suggestion + + + + + + char_box + Gives the beeest cosmics rays man. So juicy. + + + + + suggestion + + + + + + + suggestion + + + + + + + char_box + Well sometimes I forget them, they survived. Almost. + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + suggestion + + + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + + + suggestion + + + + diff --git a/addons/survey/data/survey_demo_user.xml b/addons/survey/data/survey_demo_user.xml new file mode 100644 index 00000000..0daa9eb4 --- /dev/null +++ b/addons/survey/data/survey_demo_user.xml @@ -0,0 +1,9 @@ + + + + + + + + + -- cgit v1.2.3