From 8407d88a6d3b546695d88b8a1a754cb3fb000a51 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 2 Oct 2023 08:32:19 +0200 Subject: [PATCH] [ADD] #20 standard user groups --- verdigado_attendance/__manifest__.py | 3 ++ verdigado_attendance/demo/res_users.xml | 26 +++++++++++++++++ .../security/verdigado_attendance.xml | 28 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 verdigado_attendance/demo/res_users.xml diff --git a/verdigado_attendance/__manifest__.py b/verdigado_attendance/__manifest__.py index 0da34ac..50f09f2 100644 --- a/verdigado_attendance/__manifest__.py +++ b/verdigado_attendance/__manifest__.py @@ -28,6 +28,9 @@ "views/hr_leave_type.xml", "views/hr_menu_human_resources_configuration.xml", ], + "demo": [ + "demo/res_users.xml", + ], "assets": { "web._assets_primary_variables": [ "verdigado_attendance/static/src/scss/primary_variables.scss", diff --git a/verdigado_attendance/demo/res_users.xml b/verdigado_attendance/demo/res_users.xml new file mode 100644 index 0000000..acdc291 --- /dev/null +++ b/verdigado_attendance/demo/res_users.xml @@ -0,0 +1,26 @@ + + + + verdigado_employee + Verdigado employee + + + + verdigado_officer + Verdigado officer + + + + verdigado_manager + Verdigado manager + + + diff --git a/verdigado_attendance/security/verdigado_attendance.xml b/verdigado_attendance/security/verdigado_attendance.xml index 060af8b..90d58d3 100644 --- a/verdigado_attendance/security/verdigado_attendance.xml +++ b/verdigado_attendance/security/verdigado_attendance.xml @@ -1,5 +1,33 @@ + + + Verdigado + + + Employee + + + + + Officer + + + + + Manager + + + Restrict HR users to their own employees