Merge pull request #3398 from expsa/younes_dev_odex25_mobile

Fix bug
This commit is contained in:
kchyounes19 2025-06-02 15:19:45 +01:00 committed by GitHub
commit 6b5b45e165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class AttendanceController(http.Controller):
month_end = now
try:
records = http.request.env['hr.attendance.transaction'].sudo().search([('employee_id', '=', employee.id),
('date', '>=', str(month_start)), ('date', '<=', str(month_end))])
('date', '>=', str(month_start)), ('date', '<=', str(month_end)),('sequence','=',1)])
# records = http.request.env['hr.attendance.transaction'].search([('employee_id','=',employee.id),
# ('normal_leave', '=', True),('public_holiday', '=', True), ('is_absent','=',True),('date', '>=', str(month_start)), ('date', '<=', str(month_end))])
li = []