diff --git a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py index 76c531531..040fd7c9d 100644 --- a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py +++ b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py @@ -274,7 +274,7 @@ class SalaryRuleInput(models.Model): def compute_totals(self): for item in self: - item.total_allowances, item.total_deductions = 0.0, 0.0 + item.total_allowances = item.total_deductions = item.total_loans = 0.0 for line in item.allowance_ids: allow_tot = line.total item.total_allowances += allow_tot