Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5954 มุมมอง

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

อวตาร
ละทิ้ง
ผู้เขียน

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 24
1245
1
พ.ค. 20
1891
0
มิ.ย. 17
3353
Security groups and record rules แก้ไขแล้ว
1
พ.ย. 24
1510
0
ก.พ. 24
1414