Skip to content

Commit

Permalink
verdigado_attendance: allow ordinary users create empty overtime records
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Dec 1, 2023
1 parent e538147 commit f11f439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verdigado_attendance/models/hr_attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ def _update_overtime(self, employee_attendance_dates=None):
for attendance_date in set(dates)
- set(existing_overtime.mapped("date"))
]
self.env["hr.attendance.overtime"].create(missing_vals)
self.env["hr.attendance.overtime"].sudo().create(missing_vals)
return result

0 comments on commit f11f439

Please sign in to comment.