odoo - Employee can see there own info only odoo
问题描述
Is it possible that the employee can edit their own information only in employee module and can see other employee info but cannot edit other employees info?
I tried with record rule but this is not what I want :(
Thanks in advance....
解决方案
如果用户与员工相关联,您可以这样做,员工 user_id 中有一个字段在员工中添加记录规则 user_id = user.id 并相应地授予您的权限。
推荐阅读
- arrays - Swift 从 JSON 数组中的每个元素获取元素
- javascript - 使用 laravel 控制器将数据解析为 javascript
- python - 如何使用python发送html和文本邮件
- bash - 在后台启动的 Gradle 任务进入停止状态
- javascript - 什么情况下for-of后面的代码不会被执行?
- python - 根据条件计算新列的最快方法是什么?
- firebase - 如何从 Firebase 项目中提取动态链接
- reactjs - Uncaught TypeError: o[i].value.match is not a function error in react-multiple-select-dropdown-lite
- kotlin - 选择 id 不等于 x 的记录
- logging - telegraf 多行日志消息和 inputs.tail.multiline 输入插件