From c90244a6b63ba4ce23ec442755a1319ff52114c9 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Tue, 17 Dec 2024 11:20:50 +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/hr_attendance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index fb61f67ec..72e8a73bb 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -31,7 +31,7 @@ class HrAttendance(models.Model): ('four', '星期四'), ('five', '星期五'), ('six', '星期六'), ('seven', '星期日')], string='星期', compute='_compute_week', store=True) abnormal = fields.Integer(string="异常计算") - shift_id = fields.Many2one('planning.slot', string="班次", compute='compute_shift_id', store=True) + shift_id = fields.Many2one('planning.slot', string="班次", store=True) shift_name = fields.Char(string="班次", related="shift_id.template_id.planning_name") noon_duty = fields.Datetime(string="中值") night_duty = fields.Datetime(string="晚值")