Files
odoo_source/addons/survey/data/survey.user_input.line.csv
T
Thibault Delavallée 0406b7049e [REF] survey: on survey.{question,user_input.line}, make type and field names match
PURPOSE

As new features are about to land in survey, notably live interactions [1]
and new survey building [2] performing a pre cleaning is necessary. In this
PR we clean survey models by: removing unnecessary fields, cleaning some code
and finally renaming models.

SPECIFICATIONS

To better understand question type and their input type, we update some of
``survey.question`` ``question_type`` keys :

  Type----Old type-----New type

  text----free_text----text_box
  char----textbox------char_box

Untouched question types: ``numerical_box``, ``date``, ``datetime``,
``simple_choice``, ``multiple_choice``, ``matrix``. Those are already
understandable.

Then ``survey.user_input.line`` ``answer_type`` keys are also updated to
match their question type counterparts

  QuestType--------Old type-----New type

  text_box---------free_text----text_box
  char_box---------text---------char_box
  numerical_box----number-------numerical_box

Then ``survey.user_input.line`` fields used to store the value are updated to
propagate the new naming

  AnswerLineType----Old field----------New field

  text_box----------value_free_text----value_text_box
  char_box----------value_text---------value_char_box
  numerical_box-----value_number-------value_numerical_box

Untouched answer types and field storing value: ``date``, ``datetime`` still
refer to same question type and use value_date / value_datetime fields.
``simple_choice``, ``multiple_choice`` and ``matrix`` still use ``suggestion``
answer type and ``suggested_answer_id`` (+ ``matrix_row_id``) to store link
to ``survey.question.answer`` records.

LINKS

[0] Related to Task ID 2061901 (survey models cleaning and preparation)
[1] Task ID 1972640 (live interactions)
[2] Task ID 2119587 (new frontend for building surveys)

PR #40765
2019-12-05 15:21:28 +00:00

13 KiB

1iduser_input_id:idquestion_id:idskippedanswer_typevalue_char_boxvalue_numerical_boxvalue_datevalue_text_boxsuggested_answer_id:idmatrix_row_id:id
2survey_answer_1_p1_q1survey_answer_1survey_feedback_p1_q1Falsechar_boxBrussels
3survey_answer_1_p1_q2survey_answer_1survey_feedback_p1_q2Falsedate1980-01-11
4survey_answer_1_p1_q3survey_answer_1survey_feedback_p1_q3Falsesuggestionsurvey_feedback_p1_q3_sug3
5survey_answer_1_p1_q4survey_answer_1survey_feedback_p1_q4Falsenumerical_box4
6survey_answer_1_p2_q1_1survey_answer_1survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug1
7survey_answer_1_p2_q1_2survey_answer_1survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug2
8survey_answer_1_p2_q2_1survey_answer_1survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row1
9survey_answer_1_p2_q2_2survey_answer_1survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row2
10survey_answer_1_p2_q2_3survey_answer_1survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col2survey_feedback_p2_q2_row3
11survey_answer_1_p2_q2_4survey_answer_1survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col4survey_feedback_p2_q2_row4
12survey_answer_1_p2_q2_5survey_answer_1survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col2survey_feedback_p2_q2_row5
13survey_answer_1_p2_q3survey_answer_1survey_feedback_p2_q3Falsetext_boxThanks for the good quality of your products
14survey_answer_2_p1_q1survey_answer_2survey_feedback_p1_q1Falsechar_boxParis
15survey_answer_2_p1_q2survey_answer_2survey_feedback_p1_q2True
16survey_answer_2_p1_q3survey_answer_2survey_feedback_p1_q3Falsesuggestionsurvey_feedback_p1_q3_sug2
17survey_answer_2_p1_q4survey_answer_2survey_feedback_p1_q4Falsenumerical_box10
18survey_answer_2_p2_q1_1survey_answer_2survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug2
19survey_answer_2_p2_q1_2survey_answer_2survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug3
20survey_answer_2_p2_q1_3survey_answer_2survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug4
21survey_answer_2_p2_q2_1survey_answer_2survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col4survey_feedback_p2_q2_row1
22survey_answer_2_p2_q2_2survey_answer_2survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row2
23survey_answer_2_p2_q2_3survey_answer_2survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row3
24survey_answer_2_p2_q2_4survey_answer_2survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col4survey_feedback_p2_q2_row4
25survey_answer_2_p2_q2_5survey_answer_2survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row5
26survey_answer_2_p2_q3survey_answer_2survey_feedback_p2_q3Falsetext_boxI really appreciate your products. They are awesome !!
27survey_answer_3_p1_q1survey_answer_3survey_feedback_p1_q1Falsechar_boxNew York
28survey_answer_3_p1_q2survey_answer_3survey_feedback_p1_q2Falsedate1966-06-15
29survey_answer_3_p1_q3survey_answer_3survey_feedback_p1_q3Falsesuggestionsurvey_feedback_p1_q3_sug4
30survey_answer_3_p1_q4survey_answer_3survey_feedback_p1_q4Falsenumerical_box1
31survey_answer_3_p2_q1_1survey_answer_3survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug7
32survey_answer_3_p2_q1_2survey_answer_3survey_feedback_p2_q1Falsesuggestionsurvey_feedback_p2_q1_sug8
33survey_answer_3_p2_q2_1survey_answer_3survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col1survey_feedback_p2_q2_row1
34survey_answer_3_p2_q2_2survey_answer_3survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col2survey_feedback_p2_q2_row2
35survey_answer_3_p2_q2_3survey_answer_3survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col1survey_feedback_p2_q2_row3
36survey_answer_3_p2_q2_4survey_answer_3survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col3survey_feedback_p2_q2_row4
37survey_answer_3_p2_q2_5survey_answer_3survey_feedback_p2_q2Falsesuggestionsurvey_feedback_p2_q2_col1survey_feedback_p2_q2_row5
38survey_answer_3_p2_q3survey_answer_3survey_feedback_p2_q3Falsetext_boxThe customizable desk received is not the one I ordered on your website and the quality is very poor ! Really disappointed.
39survey_vendor_certification_answer_1_p1_q1survey_vendor_certification_answer_1vendor_certification_page_1_question_1Falsesuggestionvendor_certification_page_1_question_1_choice_2
40survey_vendor_certification_answer_1_p1_q2_1survey_vendor_certification_answer_1vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_1
41survey_vendor_certification_answer_1_p1_q2_2survey_vendor_certification_answer_1vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_3
42survey_vendor_certification_answer_1_p1_q2_3survey_vendor_certification_answer_1vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_4
43survey_vendor_certification_answer_1_p1_q3_1survey_vendor_certification_answer_1vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_1
44survey_vendor_certification_answer_1_p1_q3_2survey_vendor_certification_answer_1vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_3
45survey_vendor_certification_answer_1_p1_q3_3survey_vendor_certification_answer_1vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_4
46survey_vendor_certification_answer_1_p1_q4survey_vendor_certification_answer_1vendor_certification_page_1_question_4Falsesuggestionvendor_certification_page_1_question_4_choice_2
47survey_vendor_certification_answer_1_p1_q5survey_vendor_certification_answer_1vendor_certification_page_1_question_5Falsetext_boxI think it misses a product but I don't know what
48survey_vendor_certification_answer_1_p2_q1survey_vendor_certification_answer_1vendor_certification_page_2_question_1Falsesuggestionvendor_certification_page_2_question_1_choice_4
49survey_vendor_certification_answer_1_p2_q2_1survey_vendor_certification_answer_1vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_1
50survey_vendor_certification_answer_1_p2_q2_2survey_vendor_certification_answer_1vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_2
51survey_vendor_certification_answer_1_p2_q2_3survey_vendor_certification_answer_1vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_4
52survey_vendor_certification_answer_1_p2_q3survey_vendor_certification_answer_1vendor_certification_page_2_question_3Falsesuggestionvendor_certification_page_2_question_3_choice_3
53survey_vendor_certification_answer_2_p1_q1survey_vendor_certification_answer_2vendor_certification_page_1_question_1Falsesuggestionvendor_certification_page_1_question_1_choice_2
54survey_vendor_certification_answer_2_p1_q2_1survey_vendor_certification_answer_2vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_1
55survey_vendor_certification_answer_2_p1_q2_2survey_vendor_certification_answer_2vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_3
56survey_vendor_certification_answer_2_p1_q3_1survey_vendor_certification_answer_2vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_1
57survey_vendor_certification_answer_2_p1_q3_2survey_vendor_certification_answer_2vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_3
58survey_vendor_certification_answer_2_p1_q4survey_vendor_certification_answer_2vendor_certification_page_1_question_4Falsesuggestionvendor_certification_page_1_question_4_choice_2
59survey_vendor_certification_answer_2_p1_q5survey_vendor_certification_answer_2vendor_certification_page_1_question_5True
60survey_vendor_certification_answer_2_p2_q1survey_vendor_certification_answer_2vendor_certification_page_2_question_1Falsesuggestionvendor_certification_page_2_question_1_choice_4
61survey_vendor_certification_answer_2_p2_q2_1survey_vendor_certification_answer_2vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_1
62survey_vendor_certification_answer_2_p2_q2_2survey_vendor_certification_answer_2vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_2
63survey_vendor_certification_answer_2_p2_q2_3survey_vendor_certification_answer_2vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_4
64survey_vendor_certification_answer_2_p2_q3survey_vendor_certification_answer_2vendor_certification_page_2_question_3Falsesuggestionvendor_certification_page_2_question_3_choice_4
65survey_vendor_certification_answer_3_p1_q1survey_vendor_certification_answer_3vendor_certification_page_1_question_1Falsesuggestionvendor_certification_page_1_question_1_choice_2
66survey_vendor_certification_answer_3_p1_q2_1survey_vendor_certification_answer_3vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_1
67survey_vendor_certification_answer_3_p1_q2_2survey_vendor_certification_answer_3vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_4
68survey_vendor_certification_answer_3_p1_q3_1survey_vendor_certification_answer_3vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_1
69survey_vendor_certification_answer_3_p1_q3_2survey_vendor_certification_answer_3vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_4
70survey_vendor_certification_answer_3_p1_q4survey_vendor_certification_answer_3vendor_certification_page_1_question_4Falsesuggestionvendor_certification_page_1_question_4_choice_2
71survey_vendor_certification_answer_3_p1_q5survey_vendor_certification_answer_3vendor_certification_page_1_question_5True
72survey_vendor_certification_answer_3_p2_q1survey_vendor_certification_answer_3vendor_certification_page_2_question_1Falsesuggestionvendor_certification_page_2_question_1_choice_4
73survey_vendor_certification_answer_3_p2_q2_2survey_vendor_certification_answer_3vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_1
74survey_vendor_certification_answer_3_p1_q2_3survey_vendor_certification_answer_3vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_4
75survey_vendor_certification_answer_3_p2_q3survey_vendor_certification_answer_3vendor_certification_page_2_question_3Falsesuggestionvendor_certification_page_2_question_3_choice_2
76survey_vendor_certification_answer_4_p1_q1survey_vendor_certification_answer_4vendor_certification_page_1_question_1Falsesuggestionvendor_certification_page_1_question_1_choice_1
77survey_vendor_certification_answer_4_p1_q2survey_vendor_certification_answer_4vendor_certification_page_1_question_2Falsesuggestionvendor_certification_page_1_question_2_choice_3
78survey_vendor_certification_answer_4_p1_q3survey_vendor_certification_answer_4vendor_certification_page_1_question_3Falsesuggestionvendor_certification_page_1_question_3_choice_2
79survey_vendor_certification_answer_4_p1_q4survey_vendor_certification_answer_4vendor_certification_page_1_question_4Falsesuggestionvendor_certification_page_1_question_4_choice_4
80survey_vendor_certification_answer_4_p1_q5survey_vendor_certification_answer_4vendor_certification_page_1_question_5True
81survey_vendor_certification_answer_4_p2_q1survey_vendor_certification_answer_4vendor_certification_page_2_question_1Falsesuggestionvendor_certification_page_2_question_1_choice_2
82survey_vendor_certification_answer_4_p2_q2survey_vendor_certification_answer_4vendor_certification_page_2_question_2Falsesuggestionvendor_certification_page_2_question_2_choice_4
83survey_vendor_certification_answer_4_p2_q3survey_vendor_certification_answer_4vendor_certification_page_2_question_3Falsesuggestionvendor_certification_page_2_question_3_choice_5