[FIX] survey: fix traceback when modifying answers order

Moving an answer of a multiple choice was triggering a traceback. This solves
the problem.

Technical note: the method _applyX2ManyChange which try to apply commands on
local data was trying to read field information for suggested_answer_ids on the
list view but that view was lacking that field. Adding that field as invisible
on that view solves the problem.

Same thing applies for "matrix_row_ids" for matrix questions.

Task-3106406

closes odoo/odoo#108775

X-original-commit: f08a19894c7e4515566e9744bab69d6e03174d8c
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Pierre-Yves Dufays
2022-12-29 09:06:44 +01:00
committed by Aurélien Warnon
parent 4de1e6a375
commit 45feca25fa
@@ -73,6 +73,8 @@
<field name="question_type" />
<field name="is_page" invisible="1"/>
<field name="questions_selection" invisible="1"/>
<field name="suggested_answer_ids" invisible="1"/>
<field name="matrix_row_ids" invisible="1"/>
<field name="survey_id" invisible="1"/>
<field name="triggering_question_id" invisible="1"/>
<field name="random_questions_count"