From 38f00f8774b7411e263ad573519daf99f8cc9510 Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Mon, 30 Oct 2023 16:22:13 +0100 Subject: [PATCH] verdigado_attendance: hide calendar and discuss menu from web menu --- verdigado_attendance/__manifest__.py | 3 +++ verdigado_attendance/static/src/scss/backend.scss | 6 ++++++ verdigado_attendance/static/src/scss/frontend.scss | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 verdigado_attendance/static/src/scss/frontend.scss diff --git a/verdigado_attendance/__manifest__.py b/verdigado_attendance/__manifest__.py index 50f09f2..feb2609 100644 --- a/verdigado_attendance/__manifest__.py +++ b/verdigado_attendance/__manifest__.py @@ -35,6 +35,9 @@ "web._assets_primary_variables": [ "verdigado_attendance/static/src/scss/primary_variables.scss", ], + "web.assets_frontend": [ + "verdigado_attendance/static/src/scss/frontend.scss", + ], "web.assets_backend": [ "verdigado_attendance/static/src/scss/backend.scss", "verdigado_attendance/static/src/js/systray.esm.js", diff --git a/verdigado_attendance/static/src/scss/backend.scss b/verdigado_attendance/static/src/scss/backend.scss index 350c930..b01144b 100644 --- a/verdigado_attendance/static/src/scss/backend.scss +++ b/verdigado_attendance/static/src/scss/backend.scss @@ -20,3 +20,9 @@ div.o_cp_buttons button.btn.btn-secondary.btn-allocation { .o_hr_attendance_kiosk_mode .o_hr_attendance_user_badge { background: linear-gradient(90deg, #006e2e, #008939); } + +/* hide calendar and discuss in menu */ +span[data-menu-xmlid="calendar.mail_menu_calendar"], +span[data-menu-xmlid="mail.menu_root_discuss"] { + display: none; +} diff --git a/verdigado_attendance/static/src/scss/frontend.scss b/verdigado_attendance/static/src/scss/frontend.scss new file mode 100644 index 0000000..db8d1eb --- /dev/null +++ b/verdigado_attendance/static/src/scss/frontend.scss @@ -0,0 +1,3 @@ +.bg-100 { + background-color: $o-brand-primary !important; +}