commit
24f63e7768
|
|
@ -1119,8 +1119,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