fix termination
This commit is contained in:
parent
5a43b1aa2a
commit
9696efbc2e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue