Merge pull request !8526 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-02-02 02:06:55 +00:00
committed by Gitee
@@ -965,7 +965,14 @@ class YuthonHrEmployee(models.Model):
('text','=', '育儿假分配')
], limit=1)
if not parenting_line_ids:
reports_id.sudo().write({'parenting_line_ids': parenting_line_ids})
reports_id.parenting_line_ids.sudo().create({
'vacation_id': reports_id.id,
'employee_id': employee.id,
'update_date': date_from,
'lines': total_days,
'end_date': date_to,
'text': '育儿假分配'
})
self.env['hr.leave.allocation'].create({
'name': '育儿假分配',