Add missing error message when no bank account is found when parsing UBL invoice

Closes #14938
This commit is contained in:
Cédric Krier committed 2026-07-08 08:54:37 +02:00
1 parent fca02700e9
commit 0839c83a2f
2 files changed
+7 -2

No files matched your search

+3 -2
View File
@@ -1357,8 +1357,9 @@ class Invoice_Bank(metaclass=PoolMeta):
financial_account, party)
account.save()
else:
raise InvoiceError(gettext(
'edocument_ubl.msg_account_not_found',
raise InvoiceError(ngettext(
'edocument_ubl.msg_bank_account_not_found',
len(payees),
parties=','.join([p.rec_name for p in payees]),
account=etree.tostring(
financial_account,