fix
This commit is contained in:
parent
5c2eccbbb1
commit
6ef03fb757
|
|
@ -255,8 +255,8 @@ class HRHolidays(models.Model):
|
|||
raise ValidationError(_('Sorry you have no balance'))
|
||||
worked_days = ((datetime.utcnow() + timedelta(hours=3)).date() -
|
||||
datetime.strptime(str(rec.employee_id.first_hiring_date), "%Y-%m-%d").date()).days + 1
|
||||
if worked_days < rec.holiday_status_id.number_of_days:
|
||||
raise exceptions.Warning(_('Sorry you can not create leave request you have not holidays'))
|
||||
#if worked_days < rec.holiday_status_id.number_of_days:
|
||||
# raise exceptions.Warning(_('Sorry you can not create leave request you have not holidays'))
|
||||
#### Delete upcoming_leave and add up##
|
||||
|
||||
if rec.number_of_days_temp > rec.leave_balance_date and rec.state != 'validate1' and not (
|
||||
|
|
|
|||
Loading…
Reference in New Issue