Merge pull request #3779 from expsa/bakry_hr

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

View File

@ -1116,7 +1116,7 @@ class HrSalaryRuleAndLoansLines(models.Model):
#get acoount IDs base on salary rule config
def get_account_ids(self):
for rec in self:
emp_type = rec.allowance_deduction_inverse_id.employee_id.employee_type_id
emp_type = rec.allowance_deduction_inverse_id.employee_id.employee_type_id.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