添加功能

This commit is contained in:
李鹏宇
2026-03-17 10:50:40 +08:00
parent cd7f40a851
commit 77227eda58
@@ -359,6 +359,11 @@ class HrAttendanceDetail(models.Model):
is_early_card, is_late_card, is_abnormal, is_warning, absenteeism_card, is_no_card = self.state_judgment(employee, check_in_time, check_out_time, sch_check_in_time, sch_check_out_time, current_data, is_manual)
is_expatriation = self.env['expatriation.approval'].search([('work_end', '=', True),('expatriates_ids', 'in', [employee.id]), ('is_effect', '=', False)])
if not self._process_shift_days(current_data):
if checkin_times:
check_in_time = min(checkin_times) - timedelta(hours=8)
check_out_time = max(checkin_times) - timedelta(hours=8)
if attendance:
attendance.write({
'check_in': check_in_time,