添加功能
This commit is contained in:
@@ -344,7 +344,7 @@ 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 attendance and not attendance.workflow_id:
|
||||
if attendance:
|
||||
attendance.write({
|
||||
'check_in': check_in_time,
|
||||
'check_out': check_out_time,
|
||||
@@ -363,6 +363,7 @@ class HrAttendanceDetail(models.Model):
|
||||
'absenteeism_card': absenteeism_card,
|
||||
'is_expatriation': is_expatriation,
|
||||
})
|
||||
attendance.update_attendance(employee, current_data)
|
||||
else:
|
||||
self.env['hr.attendance'].create({
|
||||
'employee_id': employee.id,
|
||||
|
||||
Reference in New Issue
Block a user