From 0da086450d2146990281ea76c88cef6c7f2c4eca Mon Sep 17 00:00:00 2001 From: Bakry Date: Tue, 2 Dec 2025 12:34:28 +0300 Subject: [PATCH] fix --- odex25_hr/to_attendance_system/models/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odex25_hr/to_attendance_system/models/models.py b/odex25_hr/to_attendance_system/models/models.py index 23b32dd04..419d88372 100644 --- a/odex25_hr/to_attendance_system/models/models.py +++ b/odex25_hr/to_attendance_system/models/models.py @@ -9,6 +9,7 @@ from .helper import httpHelper, is_valid_port, is_valid_ip, ParsedRequest class SystemAttendance(models.Model): _name = 'finger.system_attendance' + _order = 'punch_time DESC' punch_state = fields.Char("Punch state", readonly=True) area_alias = fields.Char("Area", readonly=True) @@ -581,4 +582,4 @@ class BiotimeAPI(models.Model): url = "{}?start_time={}&end_time={}&emp_code={}".format(transctionsUrl,yesterday,now, xm.code ) # url = "{}?punch_time={}&punch_time={}&emp_code={}".format(transctionsUrl, yesterday, now, xm.code) # print('################################# New Employee',url) - r.sync_employee_attenence(url) \ No newline at end of file + r.sync_employee_attenence(url)