Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5824 Weergaven

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
Annuleer
Auteur

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?

Gerelateerde posts Antwoorden Weergaven Activiteit
2
nov. 24
1125
1
mei 20
1801
0
jun. 17
3291
1
nov. 24
1380
0
feb. 24
1348