From f9d34ec7114b42978dbccb7341d263e3d97e4907 Mon Sep 17 00:00:00 2001 From: David Beguin Date: Tue, 11 Feb 2020 15:32:53 +0000 Subject: [PATCH] [IMP] survey, website_livechat: hide livechat in survey layout Purpose ======= Lighten the survey layout. Livechat button should not appear on survey pages. Specifications ============== Survey Layout inherits from web.frontend_layout, mainly to be able to use all the styles rules defined in it and keep consistency between other frontend pages and survey. To avoid having the livechat button displayed on survey layout, 'no_livechat' template variable has been introduced. The livechat button will be displayed on all layout inheriting from frontend_layout (that is extended in website_livechat to add that livechat button) only if 'no_livechat' is False. By default, this variable is not set so will be considered as False. In survey layout, no_livechat is set to True. Links ===== Task ID: 2195185 PR #45112 --- addons/survey/views/survey_templates.xml | 4 ++++ addons/website_livechat/views/website_livechat.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 268aad6c9d2..7c7815b354c 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -3,6 +3,10 @@