From 5fa77db2eaed5cae76729ffa72b2fbb77f78e225 Mon Sep 17 00:00:00 2001 From: Noe Antoine Date: Thu, 2 Mar 2023 13:56:50 +0000 Subject: [PATCH] [FIX] website_event: repair hide_sponsors with correct selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this fix, the 'hide_sponsors' value was used to hide the row of sponsors in several views: - page of all exhibitors - page of single exhibitor - if website_event_track is installed -> registration confirmation But actually it did not do anything anymore, because the old selector used to apply the display none !important was hard-coded to the previous code structure. This is very unstable, and structure changed first in 35f70e5f11754ce1bb246d8bdd1954964159cfeb Also, o_wevent_sponsor_wrapper selector was not used anywhere. FIX: Use o_wevent_sponsor_wrapper to not depend of structure anymore. 'hide_sponsors' adds o_wevent_hide_sponsors on the view and the sponsors bar will be hidden, as expected. Task-3213873 closes odoo/odoo#115453 X-original-commit: 13778a454b10aa40fae3cc0e3b7fcbd9e8781ce1 Signed-off-by: Warnon Aurélien (awa) --- .../website_event/static/src/scss/event_templates_page.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/website_event/static/src/scss/event_templates_page.scss b/addons/website_event/static/src/scss/event_templates_page.scss index 97bf69295a5..0da01fdaf3a 100644 --- a/addons/website_event/static/src/scss/event_templates_page.scss +++ b/addons/website_event/static/src/scss/event_templates_page.scss @@ -143,8 +143,6 @@ * SPONSORS */ -// small hack to hide sponsors on specific views -.o_wevent_hide_sponsors .container.mt32.mb16.d-none.d-md-block.d-print-none { - // Not a very accurate way to target the 'sponsors' block -> improve in master +.o_wevent_hide_sponsors .o_wevent_sponsor_wrapper { display: none !important; }