Skip to content
Extraits de code Groupes Projets
Valider 2d511002 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] add group restriction on hr root menu

parent bbf24c4f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -245,6 +245,11 @@ if records: ...@@ -245,6 +245,11 @@ if records:
Menus 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 --> <!-- ajoute des droits sur le menu Configuration -->
<record model="ir.ui.menu" id="hr_timesheet.hr_timesheet_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')])]"/> <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: ...@@ -263,6 +268,7 @@ if records:
</data> </data>
<data noupdate="1"> <data noupdate="1">
<delete id="hr_timesheet.timesheet_menu_report_timesheet_by_task" model="ir.ui.menu"/> <delete id="hr_timesheet.timesheet_menu_report_timesheet_by_task" model="ir.ui.menu"/>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter