Can the coach and manager approve the Time sheets instead of the main user responsible for approving the TIME SHEET ? i mean hassan and hassan mang user can approve timesheet for
test user

Can the coach and manager approve the Time sheets instead of the main user responsible for approving the TIME SHEET ? i mean hassan and hassan mang user can approve timesheet for
test user

Hope it helps
Only the designated approvers can validate it. In our system, approval is allowed only for:
The Timesheet Manager assigned to the employee
The employee’s Manager
The Project Manager of the related project
Or the user who created the timesheet
The visibility of the Validate button is controlled by the following method:
@api.depends_context('uid')
def _compute_can_validate(self):
is_manager = self.env.user.has_group('hr_timesheet.group_timesheet_manager')
is_approver = self.env.user.has_group('hr_timesheet.group_hr_timesheet_approver')
for line in self:
if is_manager or (is_approver and (
line.employee_id.timesheet_manager_id.id == self.env.user.id or
line.employee_id.parent_id.user_id.id == self.env.user.id or
line.project_id.user_id.id == self.env.user.id or
line.user_id.id == self.env.user.id)):
line.user_can_validate = True
else:
line.user_can_validate = False
Also you can found to set timesheet manager based on employee :-
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
1
Jul 23
|
2970 | |||
|
How to modify or reject an approved timesheet
Diselesaikan
|
1
Sep 21
|
6029 | ||
|
0
Des 25
|
1199 | |||
|
0
Nov 25
|
5849 | |||
|
1
Apr 26
|
4584 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.