This commit is contained in:
Bakry 2025-01-08 10:51:28 +03:00
parent fbf2ddc7b6
commit 3b073b2a4f
1 changed files with 1 additions and 1 deletions

View File

@ -1139,7 +1139,7 @@ class HRHolidays(models.Model):
'balance_leaves':duration})
def renewal_balance_leaves_last_day_of_year(self , current_date, item, already_exist , emp):
leave_type = ['exam', 'marriage','parental']#'death'] # Just set type leave in list add new Leave
leave_type = ['exam', 'marriage','parental','emergency']#'death'] # Just set type leave in list add new Leave
if (item.leave_type in leave_type) and (already_exist.remaining_leaves < item.duration):
duration = item.duration # >= already_exist.remaining_leaves and item.duration or already_exist.remaining_leaves
# current_date = datetime(2024, 12, 31).date()