添加功能

This commit is contained in:
李鹏宇
2026-02-02 09:39:48 +08:00
parent 0148b767d5
commit 11c3dcff8e
@@ -964,6 +964,8 @@ class YuthonHrEmployee(models.Model):
('end_date', '=', date_to),
('text','=', '育儿假分配')
], limit=1)
if parenting_line_ids:
reports_id.write({'parenting_line_ids': parenting_line_ids})
self.env['hr.leave.allocation'].create({
'name': '育儿假分配',