fix termination
This commit is contained in:
parent
082e00b718
commit
5a43b1aa2a
|
|
@ -1107,8 +1107,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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue