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

Hey there,

I'm looking for a solution to restrict access in the contacts view for a certain user group. 

The users should be able to see other users (aka other employees in our company) but no customers and partners.

Any ideas how the syntax of the Record Rule might look like? Or any other ideas/recommendations?

Ảnh đại diện
Huỷ bỏ

Hi,

Have you been able to figure out a solution?


I'm also looking for a solution to this. Have you found one?

Câu trả lời hay nhất

This thread has the solution that I came up with.  Still testing but seems to be working

Filter Contacts for Internal Users V16 | Odoo

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

Just an Idea. Delete Group Name "User types / Internal User" from Menu Item "Contacts" to get sure, that Employees still have read-access if they came from a related module instead of restricting via Record Rule.

Than delete Group Contact Creation on res.users for related Employees and adapt also on Default User Template.

Employees should still be able to see other Employees via Employees-Module

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

Thanks Christian but the tricky part is, that I have to make sure that certain users can't access these information in any way. Our test in that regard is that if I copy the url from a user with higher access rights from a sensible view and paste it in the browser window of the user with the limited access, they should get the Odoo warning window and no accessible page.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
2279
2
thg 6 24
2953
2
thg 8 23
2696
1
thg 12 20
7074
1
thg 5 20
5850