From 524058919d6c3a46446a2bcfd071198d60b72044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Thu, 30 Sep 2021 14:38:58 +0000 Subject: [PATCH] [FIX] survey: avoid returning empty navigation template This commit fixes the survey navigation rendering by always returning valid HTML even when no buttons are displayed. Indeed, in some cases, such as on the "thank you" page, we don't display any buttons, meaning that the returned template will be an empty string, which in turn prevents the re-rendering of this part of the page in the JS part of the survey form management. To avoid this issue, we simply add an enclosing div tag into the template so that the template always returns valid HTML no matter the use case. Task-2642787 closes odoo/odoo#78250 X-original-commit: 5504f9a1c13cee053f3142ad8eeb98d75311ee78 Signed-off-by: Thibault Delavallee (tde) Signed-off-by: awa-odoo --- .../views/survey_templates_management.xml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/addons/survey/views/survey_templates_management.xml b/addons/survey/views/survey_templates_management.xml index f5aff7caff1..e3a8c431e4b 100644 --- a/addons/survey/views/survey_templates_management.xml +++ b/addons/survey/views/survey_templates_management.xml @@ -137,14 +137,17 @@