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

I am using  odoo 12 enterprise.

What is the problem with the following record rule?

object: Documents Folder
['|', ('group_ids', 'in', [g.id for g in user.groups_id]) ,('group_ids', '=', False)]


When I click on search more  in  field folder in attachment form I get the following error :


odoo.exceptions.AccessError: ('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: documents.folder, Operation: read)', None)


UnicodeError: unable to convert 


Awatar
Odrzuć
Najlepsza odpowiedź

The rule is fine. The problem is there is no read access right for the logged-in user to the Document Folder model.

you can create a group for this model's access right and then assign the user to the corresponding group.

Awatar
Odrzuć