fix termination

This commit is contained in:
Bakry 2025-07-07 11:26:21 +03:00
parent 5a43b1aa2a
commit 9696efbc2e
1 changed files with 1 additions and 1 deletions

View File

@ -1104,7 +1104,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