Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5952 Zobrazení

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

Avatar
Zrušit
Autor

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 Odpovědi Zobrazení Aktivita
2
lis 24
1242
1
kvě 20
1890
0
čvn 17
3352
1
lis 24
1509
0
úno 24
1414