diff --git a/base_business_document_import/models/business_document_import.py b/base_business_document_import/models/business_document_import.py
index c4bdd3dbbc..91fbb48876 100644
--- a/base_business_document_import/models/business_document_import.py
+++ b/base_business_document_import/models/business_document_import.py
@@ -321,9 +321,19 @@ def _match_partner_bank(
})
chatter_msg.append(_(
"The bank account IBAN %s has been automatically "
- "added on the supplier %s") % (
- iban, partner.name))
+ "added on the supplier "
+ "%s") % (
+ iban, partner.id, partner.display_name))
return partner_bank
+ else:
+ chatter_msg.append(_(
+ "The analysis of the business document returned "
+ "IBAN %s as bank account, but there is no such "
+ "bank account in Odoo linked to partner "
+ "%s and "
+ "the option to automatically create bank "
+ "accounts upon import is disabled.")
+ % (iban, partner.id, partner.display_name))
@api.model
def _match_product(self, product_dict, chatter_msg, seller=False):