Merge pull request #3778 from expsa/bakry_hr

fix termination
This commit is contained in:
bakry 2025-07-07 11:11:42 +03:00 committed by GitHub
commit 24f63e7768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1119,8 +1119,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