commit
6b5b45e165
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue