From 4a390fd4fbc31fc49f2038dad29a260677190689 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 7 Aug 2025 10:18:04 +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_holiday/models/inherit_hr_leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 23f7c1828..33ca19c9f 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -564,7 +564,7 @@ class HolidaysRequestBatch(models.Model): ) ], limit=1) - self.env['vacation.other.line'].create({ + self.env['vacation.other.line'].sudo().create({ 'vacation_id': vacation_report.id if vacation_report else False, 'holiday_type': leave_data['type_id'].id, 'employee_id': self.users_id.employee_id.id,