From 5a43b1aa2a400ed69c16ebfc00093b5e223e342a Mon Sep 17 00:00:00 2001 From: Bakry Date: Mon, 7 Jul 2025 11:10:32 +0300 Subject: [PATCH] fix termination --- odex25_hr/hr_termination/models/hr_termination.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_hr/hr_termination/models/hr_termination.py b/odex25_hr/hr_termination/models/hr_termination.py index 11ad1c0b0..1cceecad6 100644 --- a/odex25_hr/hr_termination/models/hr_termination.py +++ b/odex25_hr/hr_termination/models/hr_termination.py @@ -1107,8 +1107,8 @@ class HrSalaryRuleAndLoansLines(models.Model): emp_type = rec.allowance_deduction_inverse_id.employee_id.employee_type_id if rec.category_id.rule_type=='allowance': account_debit = rec.salary_rule_id.get_debit_account_id(emp_type) - rec.account_debit_id = account_debit.id + rec.account_debit_id = account_debit if rec.category_id.rule_type=='deduction': account_credit = rec.salary_rule_id.get_credit_account_id(emp_type) - rec.account_credit_id = account_credit.id + rec.account_credit_id = account_credit