请假结束

This commit is contained in:
李鹏宇
2026-02-03 16:54:32 +08:00
parent c823af688c
commit 6ff3a20d78
@@ -43,7 +43,7 @@ class InheritHrLeave(models.Model):
if rec.batch_id:
rec.application_reason = rec.batch_id.text
rec.caption = rec.batch_id.name
rec.length_leave = rec.number_of_days_display
rec.length_leave = rec.number_of_days
elif rec.hour_batch_id:
rec.application_reason = rec.hour_batch_id.text
rec.caption = rec.hour_batch_id.name