Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

Hello, 

Look at this plan:

M - manager

O1 - official

O2 - official

E1 - employee of O1

E2 - employee of O1

E3 - employee of O2

E4 - employee of O2

E1 and E2 made a timesheets to approve. And ONLY O1 and M can validate this timesheets. (O2 and they can't validate it by yourself).

E3 and E4 made a timesheets to approve. And ONLY O2 and M can validate this timesheets. (O1 and they can't validate it by yourself).

O1 and O2 made a timesheets to approve. And ONLY M can validate this timesheets. (They can't validate by yourself).

M made a timesheet to approve. And he can validate this own timesheets, leave's. 

How can I do this hierarchy? I found in Settings -> Users -> user_1 option to set (none, employee, official, manager). But now official can validate own timesheets and leave's.

I want offical couldn't validate own timesheet and Leave(vacation, holidays). Only CEO can approve it for them and for yourself.


I enter the below line in "Domain value" field

[('employee_id.parent_id.user_id','=',uid)]

and it's helped for first stage. But still official can approve own timesheets and leave's.

Any suggestions?

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

EDIT:

I don't know why but my Manager can't approve timesheets official - why? Some "no permission"????

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3188
2
thg 7 16
3991
1
thg 9 20
4550
0
thg 6 16
3852
1
thg 3 15
7073