diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py
index f78aa1c28..28dccae69 100644
--- a/yuthon_hr_attendance/models/hr_attendance.py
+++ b/yuthon_hr_attendance/models/hr_attendance.py
@@ -48,6 +48,7 @@ class HrAttendance(models.Model):
is_approval = fields.Boolean(string="是否审批修正", default=False)
is_check_in_red = fields.Boolean(string="是否上班打卡异常")
is_check_out_red = fields.Boolean(string="是否下班打卡异常")
+ 撤销显示条件
is_warning = fields.Boolean(compute='_compute_is_warning', string="警告", store=True)
approval_check_in = fields.Datetime(string="修正前上班打卡时间")
diff --git a/yuthon_hr_attendance/views/hr_attendance_views.xml b/yuthon_hr_attendance/views/hr_attendance_views.xml
index 390adeac8..57fb0c12f 100644
--- a/yuthon_hr_attendance/views/hr_attendance_views.xml
+++ b/yuthon_hr_attendance/views/hr_attendance_views.xml
@@ -39,7 +39,7 @@
-
+
diff --git a/yuthon_hr_attendance/wizard/attendance_correct_wizard.py b/yuthon_hr_attendance/wizard/attendance_correct_wizard.py
index e56c30366..efc060865 100644
--- a/yuthon_hr_attendance/wizard/attendance_correct_wizard.py
+++ b/yuthon_hr_attendance/wizard/attendance_correct_wizard.py
@@ -24,7 +24,8 @@ class AttendanceCorrectWizard(models.TransientModel):
'is_early_card': False,
'is_late_card': False,
'is_check_in_red': False,
- 'is_check_out_red': False
+ 'is_check_out_red': False,
+ 'absenteeism_card': False,
}
if not record.attendance_id.shift_id:
@@ -40,16 +41,6 @@ class AttendanceCorrectWizard(models.TransientModel):
max_hour = int(max_hour_to)
max_minute = int(max_hour_to * 10 % max_hour_to)
will_datetime_end = current_date.replace(year=year, month=month, day=day, hour=max_hour, minute=max_minute) - timedelta(hours=8)
- # 准备更新的值
- values = {
- 'is_approval': True,
- 'is_abnormal': False,
- 'is_no_card': False,
- 'is_early_card': False,
- 'is_late_card': False,
- 'is_check_in_red': False,
- 'is_check_out_red': False
- }
# 处理上班打卡
if not self.attendance_id.check_in:
values['check_in'] = will_datetime_start