@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user