Skip to content

Conversation

@hbrunn
Copy link
Member

@hbrunn hbrunn commented Dec 8, 2025

This module extends Odoo's vendor bill import mechanism with support for
simple PDF invoices i.e. PDF invoice that don't have an embedded XML
file.

  • Possibility to add support for a new vendor without developper
    skills: the accountant can do it!
  • Adding support for a new vendor is faster.
  • More tolerance on vendor invoice layout changes.
  • Easier to install.

Ihis module uses the following design when importing a PDF vendor bill:

  1. raw text extraction of the PDF file,
  2. identify the partner using the VAT number (if the VAT number is
    present in the raw text extraction) or some keywords,
  3. use regular expressions (regex) to extract the data needed to create
    the vendor bill in Odoo (single line configuration).

Under the hood, regular expressions are auto-generated from the
configuration made by the user in Odoo. No need to be a regex expert!
But you can still write regexes to extract some fields for some very
specific needs.

The module can extract the following fields:

  • Total Amount with taxes
  • Total Untaxed Amount
  • Total Tax Amount
  • Invoice Date
  • Due Date
  • Invoice Number
  • Description (for that field, you have to write a regex)

In this list, only 3 fields are required:

  • Invoice Date
  • 2 out of the 3 Amount fields (the 3rd can be deducted from the 2
    others: Total Amount = Total Untaxed + Total Tax)

See also #959 #1091

@hbrunn hbrunn requested a review from jans23 December 8, 2025 16:16
@hbrunn hbrunn force-pushed the 18.0-account_edi_simple_pdf branch from c39b919 to cf0dd5e Compare December 8, 2025 16:32
@hbrunn hbrunn force-pushed the 18.0-account_edi_simple_pdf branch from cf0dd5e to b00c4df Compare December 8, 2025 16:38
@jans23
Copy link

jans23 commented Dec 8, 2025

I tested it and it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants