[英]The requested operation cannot be completed due to security restrictions. Please contact your system administrator. document type: users
For some reason, I get the following error when a mentor tries to edit their own recruitment projects:出于某种原因,当导师尝试编辑自己的招聘项目时,我收到以下错误:
The requested operation cannot be performed due to security restrictions.由于安全限制,无法执行请求的操作。 Please contact your system administrator.
请联系您的系统管理员。
(Document type: users, action: read) - (Records: [11,45, 109, 122, 155], User: 21) (文档类型:用户,操作:读取)-(记录:[11,45, 109, 122, 155],用户:21)
I checked and all the permission settings work and there are individual bugs, not everyone has this problem.我检查了所有权限设置都有效,并且存在个别错误,并不是每个人都有这个问题。
It seems like the model in the error message has an access rule that doesn't allow the user to read certain records, in your case the model should be res_users or res_partner.似乎错误消息中的 model 具有不允许用户读取某些记录的访问规则,在您的情况下,model 应该是 res_users 或 res_partner。
I am not sure about the exact path in Odoo 11 but in Odoo 12 you should activate the developer mode and navigate to Settings -> Technical -> Security -> Record Rules and search Object by typing the model name.我不确定 Odoo 11 中的确切路径,但在 Odoo 12 中,您应该激活开发人员模式并导航到设置 -> 技术 -> 安全 -> 记录规则并通过输入 model 名称搜索 Object。
Check the rules that appear, by deactivating one by one you can find out which one is causing the issue and decide if you want to deactivate it or change the rule definition.检查出现的规则,通过一一停用,您可以找出导致问题的原因,并决定是否要停用它或更改规则定义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.