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

I need to restrict the access of a website page to only specific portal users.

for example if we take as an example odoo's build in "/customers" page.

I would only allow portal contacts who have the following added custom field?

"can _access_website_customers" = True

TIA

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

Here's what I tried:

I've added a field "can_access_website_customers" to the users model.

I created a record rule for the object "users" with definition:

[('can_access_website_customers', '=', True)]

I added the above rule to group "user types/portal"

but it doesn't seem to work.

any help/pointer?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
1245
1
thg 5 20
1891
0
thg 6 17
3353
1
thg 11 24
1510
0
thg 2 24
1414