Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7060 Lượt xem

I have insufficient karma to edit another post with the exact same question so I will create a new one.

In Human Resources, a manager should only see their direct employees i.e.

Manager 1 -> Employee 1 and Employee 2 Manager 2 -> Employee 3 and Employee 4 etc

Is this at all possible? A use case could be an employee requests leave and their direct supervisor is emailed and can approve this request. No other employee can see the request or approve.

Ảnh đại diện
Huỷ bỏ
Tác giả

The duplicate request is http://help.openerp.com/question/38630/rule-in-human-resource-view-employee/ but it is a mess and is likely to never get any answers unless edited.

Tác giả Câu trả lời hay nhất

This requires a rule, access rights, and the employee heirarchy filled out under Human Resources.

  1. Make a user a manager
  2. Then when you record a rule set parent.id = manager.user.id
  3. Also add user.id = manager.user.id

The parent.id is referencing the employee's manager under the Human Resources section. The user.id = manager.user.id is checking if the current user's id matches the manager's id.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 6 19
3372
0
thg 10 18
2988
1
thg 10 18
8752
1
thg 9 17
5706
2
thg 4 16
5033