跳至內容
選單
此問題已被標幟
1 回覆
5904 瀏覽次數

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?

相關帖文 回覆 瀏覽次數 活動
2
11月 24
1213
1
5月 20
1864
0
6月 17
3344
1
11月 24
1490
0
2月 24
1403