From d273bdfed7c3d2292be235b05240c2ecd72752ad Mon Sep 17 00:00:00 2001 From: Johan Demaret Rivarola Date: Mon, 13 May 2019 09:11:45 +0000 Subject: [PATCH] [FIX] survey: unregistered tour This commit aims to make unit tests pass when creating a new database with only 'survey' installed. The tour 'test_survey' was not loaded before reaching /survey/start, causing tests to fail. The js asset is now loaded within web.assets_common because the tour should also work with the 'public' user. For this reason, 'web.assets_backend' is not a good fit. Widget 'root.widget' was undefined too. Appropriate js file is now loaded. Closes #33330 Signed-off-by: Christophe Simonis --- addons/survey/views/survey_templates.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 9efe5426187..8ac3ff63c2d 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -8,7 +8,7 @@ + @@ -21,6 +21,12 @@ + +