跳至内容
菜单
此问题已终结
1 回复
3789 查看

Hi, in addition to the group base.group_user,

I created the group : custom.group_hr_employee (inheritating from base.group_user).

In odoo code, the Timesheets root menu is accessible to the groupe base.group_user,

But I wish to give access to the group custom.group_hr_employee only.

Thus, I implemented that code in my custom module :

<menuitem id="hr_timesheet.timesheet_menu_root" name="Timesheets" sequence="55" groups="group_hr_employee"/>

But instead of replacing the base.group_user, my code only adds this new group in the groups having access to this menu item.

Does anyone has a tip to REPLACE the default group and not only ADD my second group ?


形象
丢弃
最佳答案

Hi,

Please see this post , this will give you the right way : https://www.odoo.com/forum/help-1/question/hide-menu-for-existing-group-18704

Thanks

形象
丢弃
编写者

This post doesn't resolve my isssue unfortunately.

Maybe because it has been posted 5 years ago...

相关帖文 回复 查看 活动
2
7月 23
5734
5
5月 20
2143
1
2月 25
7470
3
4月 25
12138
3
3月 23
24263