From ed82e4d3eef1ae227d879a3b3c9024c4d0950d8a Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 3 Jun 2025 20:54:32 +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_month.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance_month.py b/yuthon_hr_attendance/models/hr_attendance_month.py index 72bfdf456..729bb654d 100644 --- a/yuthon_hr_attendance/models/hr_attendance_month.py +++ b/yuthon_hr_attendance/models/hr_attendance_month.py @@ -152,7 +152,8 @@ class HrAttendanceMonthDetail(models.Model): # company_area = fields.Selection(related='department_id.company_area', string='* ζ‰€ε±žεŒΊεŸŸ') def send_confirm_attendance(self): - for record in self: + record_ids = self.env["hr.attendance.month.detail"].browse(self._context.get('active_ids', self._context.get('active_id'))) + for record in record_ids: partner = record.employee_id.user_id.partner_id lang = record.env.lang partner_ids = partner.ids