Skip to Content
Menu
This question has been flagged
1 Reply
826 Views

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 


Avatar
Discard
Best Answer

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.

Avatar
Discard