请假结束
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user