Such as employee A belong the department A, employee B belong the department B.
The employee A can not see any information of B, such as "Time Off", "Employee", "Calendar",because of different department.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
You should be able to use Record Rules.
If you look in the demo database you should see one example with this domain:
['|', '|', ('employee_id.user_id', '=', user.id), ('employee_id.parent_id.user_id', '=', user.id), '|', '|', ('department_id', '=', False), ('department_id.member_ids.user_id', 'in', [user.id]), ('department_id.manager_id.user_id', '=', user.id)]
There's another example in this question.
Try to add one customize rules in 'Settings-Technical-Record Rules',but the user(not administrator) still can see all the employee in 'Employee' App
Name:Customize
Object:Basic Employee
Active:yes
Rule Definition (Domain Filter):
['|',
'|', ('employee_id.user_id', '=', user.id), ('employee_id.parent_id.user_id', '=', user.id),
'|', '|', ('department_id', '=', False), ('department_id.member_ids.user_id', 'in', [user.id]), ('department_id.manager_id.user_id', '=', user.id)]
Access Rights:read
Group:global
Sorry, I'm not an expert on the database structure for the Employee app, I was just offering some advice about Record Rules.
Thank you all the same
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
8月 25
|
3582 | ||
|
1
10月 24
|
2789 | ||
|
2
7月 24
|
2171 | ||
|
0
5月 23
|
2360 | ||
|
9
12月 23
|
33404 |