Add missing error message when no bank account is found when parsing UBL invoice
Closes #14938 (grafted from f26f207f98cf5a0df67124e5677db5b848d52cf5) --HG-- branch : 8.0
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -24,5 +24,9 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="text">Could not find tax for:
|
||||
%(tax_category)s</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_bank_account_not_found">
|
||||
<field name="text">Could not find bank account "%(account)s" for party "%(parties)s".</field>
|
||||
<field name="text_plural">Could not find bank account "%(account)s" for any of the parties "%(parties)s".</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
||||
Reference in New Issue
Block a user