添加功能
This commit is contained in:
@@ -115,8 +115,7 @@ class HrAttendance(models.Model):
|
||||
for att in self.env["hr.attendance"].browse(self._context.get('active_ids', self._context.get('active_id'))):
|
||||
date_records = {}
|
||||
# 获取记录的日期(忽略时间部分)
|
||||
record_date = att.current_data.date() if att.current_data else None
|
||||
|
||||
record_date = att.current_data if att.current_data else None
|
||||
if record_date:
|
||||
# 将记录按日期分组
|
||||
if record_date not in date_records:
|
||||
|
||||
Reference in New Issue
Block a user