Merge pull request !4369 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-08-07 02:19:12 +00:00
committed by Gitee
+1 -1
View File
@@ -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,