Security in Odoo | Access rights | Odoo development

Security in Odoo | Access rights | Odoo development

Odoo Discussions

3 года назад

1,457 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yasirkhan1278
@yasirkhan1278 - 18.12.2021 22:23

How to restrict user to see his own created contacts?
I create a group (Own Contacts Only)
I created a record rule with domain_force = ([('user_id', '=', user.id)]) and I also tried with [('user_id', '=', uid)].
But whenever I add any user to group (Own Contacts Only) and then log in from that added user, it throws an error:

Error message:

Due to security restrictions, you are not allowed to access 'Users' (res.users) records.
This restriction is due to the following rules:
- Own Contacts Only

Contact your administrator to request access if necessary.

Implicitly accessed through 'Users' (res.users).

Ответить
@ajengfitri4424
@ajengfitri4424 - 16.12.2021 03:58

waalaiksumsalam

Ответить
@abdellahhajjam6654
@abdellahhajjam6654 - 28.07.2021 13:45

Thank you !

Ответить