From 4dddf50a5473c37090acade2981d669edf42ca4b Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 7 Aug 2025 17:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/yuthon_vacation_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index 10ada9685..f2b281ec1 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -52,7 +52,7 @@ class YuthonVacationReports(models.Model): is_early_card = fields.Integer(string="早退", compute='_compute_attendance_fields', store=True) is_no_card = fields.Integer(string="缺卡", compute='_compute_attendance_fields', store=True) is_work = fields.Integer(string='旷工', compute='_compute_attendance_fields', store=True) - is_abnormal = fields.Boolean(string="异常", compute='_compute_attendance_fields', store=True) + is_abnormal = fields.Integer(string="异常", compute='_compute_attendance_fields', store=True) vacation_state = fields.Selection( selection=[ @@ -104,7 +104,7 @@ class YuthonVacationReports(models.Model): if att.absenteeism_card: is_work += 1 if att.is_abnormal: - is_abnormal = True + is_abnormal += 1 rec.should_attendance = leave_days rec.is_late_card = is_late