From 79ea929c6ea8839dda4ab30753ca54b4f374c906 Mon Sep 17 00:00:00 2001 From: "Abdelouahab (abla)" Date: Mon, 16 May 2022 09:08:35 +0000 Subject: [PATCH] [FIX] survey : fix displaying progression when consulting results To reproduce ============ - Create a new Survey. - Add questions under at least two sections. - In Options, ensure that each section is displayed on its own page. - Click "Share" and open the share link. - Partially complete the survey and close the window before submitting. - From the survey click "See Results". Then choose a response to a question from the partially completed answer. - A traceback raised Purpose ======= On this condition : https://github.com/odoo/odoo/blob/3602fdfc0ce8ed76a530c8c3cc1d49eecf9d250c/addons/survey/views/survey_templates.xml#L27 we check if we have to display the progression or not, in case of consulting results it doesn't make sense displaying it. that's mean the check made in `t-if` was not enough in this case and a condition is missing. Specification ============= to solve the issue the condition `not survey_form_readonly` was added opw-2821478 closes odoo/odoo#91513 X-original-commit: 98e3dcea9f0f86a4879999f73019c11a880f6a77 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: abla001 --- addons/survey/views/survey_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 80533fcaecc..07d2ccdf0af 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -32,7 +32,7 @@
+ t-if="survey and survey.questions_layout != 'one_page' and answer and answer.state == 'in_progress' and (not question or not question.is_page) and not survey_form_readonly">