commit
b54f9b817b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue