From 2d5110021724bf1b669c2ff75b13cea11d4e640f Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Tue, 24 Aug 2021 14:32:12 +0200 Subject: [PATCH] [update] add group restriction on hr root menu --- views/hr_timesheet.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/views/hr_timesheet.xml b/views/hr_timesheet.xml index bc232a1..80e09bf 100644 --- a/views/hr_timesheet.xml +++ b/views/hr_timesheet.xml @@ -245,6 +245,11 @@ if records: Menus --> + <!-- affichage du menu employé uniquement pour le groupe Fonctionnaire --> + <record model="ir.ui.menu" id="hr.menu_hr_root"> + <field name="groups_id" eval="[(6,0,[ref('hr.group_hr_user')])]"/> + </record> + <!-- ajoute des droits sur le menu Configuration --> <record model="ir.ui.menu" id="hr_timesheet.hr_timesheet_menu_configuration"> <field name="groups_id" eval="[(6,0, [ref('hr_timesheet.group_timesheet_manager'), ref('cgscop_partner.group_cg_administrator'), ref('cgscop_partner.group_ur_list_modif')])]"/> @@ -263,6 +268,7 @@ if records: + </data> <data noupdate="1"> <delete id="hr_timesheet.timesheet_menu_report_timesheet_by_task" model="ir.ui.menu"/> -- GitLab