Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1205 Tampilan

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
Buang
Jawaban Terbai

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
Buang