From 9b7013d7b9b19e47e8e88db07176e0af1be90331 Mon Sep 17 00:00:00 2001 From: lfr-opennet Date: Wed, 13 Jun 2018 13:14:54 +0200 Subject: [PATCH] [11.0][FIX] l10n_ch_pain_base - fix error message (#425) * [11.0][FIX] l10n_ch_pain_base - fix error message Fix of the field used on the UsserError message when no CCP account is set. The field 'partner_bank.name' doesn't exist, the corresponding field is 'partner_bank.acc_number' --- l10n_ch_pain_base/models/account_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_ch_pain_base/models/account_payment_order.py b/l10n_ch_pain_base/models/account_payment_order.py index 545b1e610..afaafe77c 100644 --- a/l10n_ch_pain_base/models/account_payment_order.py +++ b/l10n_ch_pain_base/models/account_payment_order.py @@ -89,7 +89,7 @@ def generate_party_acc_number(self, parent_node, party_type, order, if not partner_bank.ccp: raise UserError(_( "The field 'CCP/CP-Konto' is not set on the bank " - "account '%s'.") % partner_bank.name) + "account '%s'.") % partner_bank.acc_number) party_account = etree.SubElement( parent_node, '%sAcct' % party_type) party_account_id = etree.SubElement(party_account, 'Id')