diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index d63beb80e..50c549a87 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -688,8 +688,14 @@ class HolidaysRequestBatch(models.Model): if attendance_records: attendance_records.write({ 'workflow_id': workflow_id.id, + 'is_workflow': True, + 'is_no_card': False, + 'is_early_card': False, + 'is_late_card': False, + 'is_abnormal': False, + 'absenteeism_card': False }) - attendance_records.fixes() + def _compute_duration_day(self, holiday_status_id, start_date, end_date): """