-1

我可以添加一条记录规则来限制员工的写入权限,以便他只能修改他的信息吗?我对此进行了测试,但它不起作用:

在访问控制列表中,我添加了对 Employee 对象的写访问权限。

*/Add a new rule to the Employee object RULE1 :[('user_id', '=', user.id)]  --read and write checked
*/Add a new rule RULE2 to the Employee object:[('user_id', '!=', user.id)] --read is checked
4

1 回答 1

0

[('id','=',user.id)]选择 READ, WRITE操作然后登录用户只能看到他的记录。

您需要为 hr.employee 模型添加此规则。

于 2015-02-27T12:24:05.017 回答