Skip to content

Commit

Permalink
[MIG] account_invoice_import_facturx to v12
Browse files Browse the repository at this point in the history
Update technical name of module to remove '-'
Up-port PR OCA#78 Auto-creation of bank accounts upon invoice import is now optional
Fix returned action when using the import wizard
  • Loading branch information
alexis-via authored and sebalix committed May 13, 2020
1 parent 7434bcd commit 115c0e8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions base_business_document_import/models/business_document_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,19 @@ def _match_partner_bank(
})
chatter_msg.append(_(
"The bank account <b>IBAN %s</b> has been automatically "
"added on the supplier <b>%s</b>") % (
iban, partner.name))
"added on the supplier "
"<a href=# data-oe-model=res.partner data-oe-id=%d>%s</a>") % (
iban, partner.id, partner.display_name))
return partner_bank
else:
chatter_msg.append(_(
"The analysis of the business document returned "
"<b>IBAN %s</b> as bank account, but there is no such "
"bank account in Odoo linked to partner "
"<a href=# data-oe-model=res.partner data-oe-id=%d>%s</a> 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):
Expand Down

0 comments on commit 115c0e8

Please sign in to comment.