@@ -43,11 +43,11 @@ 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.batch_id.days
|
||||
rec.length_leave = rec.number_of_days_display
|
||||
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.days
|
||||
rec.length_leave = rec.hour_batch_id.leave_hours /8
|
||||
else:
|
||||
rec.application_reason = ''
|
||||
rec.caption = ''
|
||||
|
||||
Reference in New Issue
Block a user