Hey i am trying to override action_payslip_done(self) method but it is already overriden in hr_payroll_account and when i try to paste all code and add the additional part it wont change anything for me . Kindly help. What i am trying to achieve is to fetch partner_id into journal entry from payroll .
This is what i want to update for both credit and debit line.
if not debit_line:
debit_line = {
'name': line.name,
'partner_id': slip.employee_id.address_home_id.id,
'account_id': debit_account_id,
'journal_id': slip.struct_id.journal_id.id,
'date': date,
'debit': debit,
'credit': credit,
'analytic_account_id': line.salary_rule_id.analytic_account_id.id or slip.contract_id.analytic_account_id.id,
}
line_ids.append(debit_line)
else:
debit_line['debit'] += debit
debit_line['credit'] += credit