fix termination

This commit is contained in:
Bakry 2025-07-07 11:10:32 +03:00
parent 082e00b718
commit 5a43b1aa2a
1 changed files with 2 additions and 2 deletions

View File

@ -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