Merge pull request #3399 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
kchyounes19 2025-06-02 15:20:27 +01:00 committed by GitHub
commit a52f13bc47
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 = []