Skip to content

Commit

Permalink
[IMP] account_payment_order: Use bank.payment.line reference in Payme…
Browse files Browse the repository at this point in the history
…nt Order Move Lines (OCA#418)
  • Loading branch information
ecino authored and dnplkndll committed Oct 31, 2021
1 parent 94b8a10 commit eb396f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account_payment_order/models/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ def _prepare_move(self, bank_lines=None):
ref = _('Payment order %s') % self.name
else:
ref = _('Debit order %s') % self.name
if bank_lines and len(bank_lines) == 1:
ref += " - " + bank_lines.name
if self.payment_mode_id.offsetting_account == 'bank_account':
journal_id = self.journal_id.id
elif self.payment_mode_id.offsetting_account == 'transfer_account':
Expand Down

0 comments on commit eb396f7

Please sign in to comment.