Skip to content

Commit

Permalink
account_invoice_import: improve handling of simple PDF invoices
Browse files Browse the repository at this point in the history
Implement what is described in issue OCA#610:
- account_invoice_import_simple_pdf and account_invoice_import_invoice2data can now be use
d together
- when importing an invoice for an unknown partner, it creates an empty invoice with PDF a
s attachment
- when importing an invoice via mail gateway and the from email is set
on a partner that doesn't have any import config, create a supplier
invoice with PDF as attachment and with that partner
- when importing an invoice via mail gateway and the from email is set
on a partner that has a single-line import config, create a supplier
invoice with PDF as attachment, that partner and 1 invoice line with price_unit=0.
  • Loading branch information
alexis-via authored and rjocoleman committed Mar 22, 2023
1 parent 4c82dcd commit 62bdda1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _match_partner( # noqa: C901
return partner

if not raise_exception:
return
return None
raise self.user_error_wrap(
"_match_partner",
partner_dict,
Expand Down

0 comments on commit 62bdda1

Please sign in to comment.