Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3801 Lượt xem

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 ?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

This post doesn't resolve my isssue unfortunately.

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 23
5736
5
thg 5 20
2144
1
thg 2 25
7472
3
thg 4 25
12170
3
thg 3 23
24277