Skip to content

Commit

Permalink
Use bank.payment.line reference in Payment Order Move Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jun 29, 2018
1 parent a9d9665 commit 89a71e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account_payment_order/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{
'name': 'Account Payment Order',
'version': '10.0.1.5.0',
'version': '10.0.1.6.0',
'license': 'AGPL-3',
'author': "ACSONE SA/NV, "
"Therp BV, "
Expand Down
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 @@ -375,6 +375,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 89a71e7

Please sign in to comment.