请假结束

This commit is contained in:
李鹏宇
2026-02-03 16:41:57 +08:00
parent 429335c9b7
commit c823af688c
2 changed files with 2 additions and 2 deletions
@@ -47,7 +47,7 @@ class InheritHrLeave(models.Model):
elif rec.hour_batch_id:
rec.application_reason = rec.hour_batch_id.text
rec.caption = rec.hour_batch_id.name
rec.length_leave = rec.hour_batch_id.leave_hours /8
rec.length_leave = rec.leave_hours /8
else:
rec.application_reason = ''
rec.caption = ''
@@ -9,7 +9,7 @@
<field name="employee_id"/>
<field name="employee_company_id"/>
<field name="holiday_status_id"/>
<field name="date_from" groups="base.group_system"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="length_leave" string="请假时长(天)"/>
<field name="leave_stats"/>