Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

I want to prevent user can interact with partner has field partner_share = false so i edit record rule res.partner company from:

['|', '|', ('partner_share', '=', False), ('company_id', 'in', company_ids), ('company_id', '=', False)]

to:
['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]


After remove condition ('partner_share', '=', False), the contact module displays the data as I expected. But when i create new user for other company it give me this error:


And when I log in with My Company's user everything is fine but when I log in with the Company 2's user I created before updating the record rule it gives me this error:

Access Error
Due to security restrictions, you are not allowed to access 'Contact' (res.partner) records.

Contact your administrator to request access if necessary.

This is my res.partner table data:

I have no idea why this problem occurs, please tell me a solution to this problem.
Thank you very much!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 24
2242
2
kwi 24
2052
1
maj 22
2920
2
lip 20
2279
1
lut 20
4179