From 4281d2bc38b7389a149e9ba2e0cdbcde8f2d4b83 Mon Sep 17 00:00:00 2001 From: Daniel Gergely Date: Tue, 24 Mar 2026 16:42:39 +0100 Subject: [PATCH 1/5] [T3066] FIX: hid cart in muskathlon events - FIX: used css instead of templates/records (they just didn't want to work) --- muskathlon/static/src/css/custom.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/muskathlon/static/src/css/custom.css b/muskathlon/static/src/css/custom.css index 70d15812a..e08e2a374 100644 --- a/muskathlon/static/src/css/custom.css +++ b/muskathlon/static/src/css/custom.css @@ -37,3 +37,7 @@ height: 25px; width: 25px; } + +li.o_wsale_my_cart { + display: none !important; +} \ No newline at end of file From d5068a6a5822b57fa673c9984a7efbb6a6ad8169 Mon Sep 17 00:00:00 2001 From: Daniel Gergely Date: Tue, 24 Mar 2026 16:46:57 +0100 Subject: [PATCH 2/5] [T3066] FIX: pre-commit --- muskathlon/static/src/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muskathlon/static/src/css/custom.css b/muskathlon/static/src/css/custom.css index e08e2a374..34def8a89 100644 --- a/muskathlon/static/src/css/custom.css +++ b/muskathlon/static/src/css/custom.css @@ -40,4 +40,4 @@ li.o_wsale_my_cart { display: none !important; -} \ No newline at end of file +} From 02326d93b975cc7f5b5567431ca794182df8f654 Mon Sep 17 00:00:00 2001 From: Daniel Gergely Date: Tue, 24 Mar 2026 17:40:21 +0100 Subject: [PATCH 3/5] [T3066] FIX: cart finally hidden - FIX: using website.sudo() to only hide the cart for muskathlon --- muskathlon/__manifest__.py | 1 + muskathlon/static/src/css/custom.css | 4 ---- muskathlon/templates/header.xml | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 muskathlon/templates/header.xml diff --git a/muskathlon/__manifest__.py b/muskathlon/__manifest__.py index 81ef086fa..7b3b16bd0 100644 --- a/muskathlon/__manifest__.py +++ b/muskathlon/__manifest__.py @@ -57,6 +57,7 @@ "views/recurring_contracts_view.xml", "views/muskathlon_registrations.xml", "views/notification_settings_view.xml", + "templates/header.xml", "templates/muskathlon_page.xml", "templates/muskathlon_registration_form.xml", "templates/muskathlon_order_material.xml", diff --git a/muskathlon/static/src/css/custom.css b/muskathlon/static/src/css/custom.css index 34def8a89..70d15812a 100644 --- a/muskathlon/static/src/css/custom.css +++ b/muskathlon/static/src/css/custom.css @@ -37,7 +37,3 @@ height: 25px; width: 25px; } - -li.o_wsale_my_cart { - display: none !important; -} diff --git a/muskathlon/templates/header.xml b/muskathlon/templates/header.xml new file mode 100644 index 000000000..9a4d66910 --- /dev/null +++ b/muskathlon/templates/header.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file From 371bdd2826ed10f517eedf60a5005da9328133e4 Mon Sep 17 00:00:00 2001 From: Daniel Gergely Date: Tue, 24 Mar 2026 17:43:07 +0100 Subject: [PATCH 4/5] [T3066] FIX: pre-commit --- muskathlon/templates/header.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/muskathlon/templates/header.xml b/muskathlon/templates/header.xml index 9a4d66910..f58f9022a 100644 --- a/muskathlon/templates/header.xml +++ b/muskathlon/templates/header.xml @@ -3,11 +3,9 @@ From a4d5151647656a674aea9b10cc86dbad328fd512 Mon Sep 17 00:00:00 2001 From: Daniel Gergely Date: Tue, 24 Mar 2026 17:45:12 +0100 Subject: [PATCH 5/5] [T3066] FIX: pre-commit 2 --- muskathlon/templates/header.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muskathlon/templates/header.xml b/muskathlon/templates/header.xml index f58f9022a..ba646f46e 100644 --- a/muskathlon/templates/header.xml +++ b/muskathlon/templates/header.xml @@ -9,4 +9,4 @@ - \ No newline at end of file +