diff --git a/odex25_hr/hr_termination/models/hr_termination.py b/odex25_hr/hr_termination/models/hr_termination.py index 1117b2a77..7d40d2fc1 100644 --- a/odex25_hr/hr_termination/models/hr_termination.py +++ b/odex25_hr/hr_termination/models/hr_termination.py @@ -222,12 +222,7 @@ class HrTermination(models.Model): if item.salary: days = item.employee_id.resource_calendar_id.work_days - if days: - day_amount = item.salary / days - else: - day_amount = 5.0 - - # day_amount = item.salary / days + day_amount = item.salary / days holiday_amount = item.leave_balance * day_amount item.leave_balance_money = round(holiday_amount,2) @@ -825,7 +820,6 @@ class HrTermination(models.Model): 'You can not create termination when there is "%s" employee petty cash payment in state not in state Return Done for "%s" please reconcile it') % ( len(employee_petty_cash_payment), self.employee_id.name)) if custody_request_module: - print("lokokoko") exceeded_custody = self.env['hr.request.pledge'].search([ ('employee_id', '=', self.employee_id.id), ('custody_status', '=', 'exceeded')