Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
976 Vues

I added this group in my module i need to hide configuration of time off when this group is checked  despite this user still Adminstrator of time off

<record id="group_hr_leave_valiator" model="res.groups">
<field name="name">HR Leave Validator</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>


Avatar
Ignorer
Meilleure réponse

Hi,

Remove the existing user groups from the configuration menu and add your user group to this menu. So that only users in this group will see the menu.

<record id="hr_holidays.menu_hr_holidays_configuration" model="ir.ui.menu">
<field name="groups_id" eval="[(5,0), (4, ref('module_name.group_hr_leave_valiator'))]"/>
record>



Thanks

Avatar
Ignorer