diff --git a/account_payment_order/__manifest__.py b/account_payment_order/__manifest__.py index 9d42b58e581..bc3c4eb56fe 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -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, " diff --git a/account_payment_order/models/account_payment_order.py b/account_payment_order/models/account_payment_order.py index 8613fde7401..f7817036650 100644 --- a/account_payment_order/models/account_payment_order.py +++ b/account_payment_order/models/account_payment_order.py @@ -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':