跳至内容
菜单
此问题已终结
1 回复
1208 查看

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 


形象
丢弃
最佳答案

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.

形象
丢弃