Skip to content

Commit

Permalink
[11.0][FIX] l10n_ch_pain_base - fix error message (OCA#425)
Browse files Browse the repository at this point in the history
* [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'
  • Loading branch information
lfr-opennet authored and yvaucher committed Jun 13, 2018
1 parent b91b88f commit 9b7013d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ch_pain_base/models/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 9b7013d

Please sign in to comment.