Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
Community Apps Dependencies | Show |
Lines of code | 1510 |
Technical Name |
az_invoice_provider_ai_ocr_invoice2data |
License | OPL-1 |
Versions | 16.0 17.0 18.0 |
Invoice2Data provider (free, local)
This add-on provides the Invoice2Data provider for the AZ AI OCR Vendor Bills ecosystem. It processes PDFs locally (no external API calls) and extracts vendor, invoice number, dates, currency, subtotals/taxes/totals, and more using templates when available, or a robust multilingual heuristic as a fallback.
Pricing: this provider module is free. Any price shown on apps.odoo.com reflects the paid dependency on the base module (AZ AI OCR Vendor Bills).
Key features
- Local processing, no API keys required
- Supports Invoice2Data templates plus an international heuristic fallback
- Multilingual label sets out of the box, plus admin-defined extra labels per field
- Optional pre-OCR for scanned PDFs via OCRmyPDF/Tesseract (auto-detects "scanned" PDFs)
- Multi-select OCR languages (tag-style) based on languages available in the system
- Detailed logging for troubleshooting
- Seamless with the base module's Import vendor bill (AI) wizard
Requirements
This provider relies on standard utilities/libraries (installation details not included here):
- invoice2data (Python)
- One of: poppler-utils (pdftotext) — or — pdfminer.six
- Optional for scans: ocrmypdf and Tesseract OCR (with the languages you intend to use)
Tip: the module automatically detects whether OCRmyPDF/Tesseract are available to enable OCR options in Settings.
Configuration
-
Install AZ AI OCR Vendor Bills (base module) and this provider:
az_invoice_provider_ai_ocr_invoice2data
. -
Go to:
Accounting → Configuration → Settings → AI OCR for Vendor Bills
Select Invoice2Data (free, local) as the active provider. - Extra labels: add comma-separated terms to improve detection (Invoice, Invoice number, Date, Subtotal/Net, Tax/VAT, Total, Vendor/Supplier, VAT/Tax ID).
-
OCR options (for scans, available if OCRmyPDF/Tesseract are installed):
- Auto-apply OCR to scanned PDFs: only OCR when the PDF has no usable text layer.
- Always OCR: force OCR for every PDF (useful for low-quality text layers).
- OCR languages: pick multiple system-available languages (tag-style).



Usage
- Open Accounting → Vendors → Bills, click New. In the form, press Import vendor bill (AI), upload the PDF, and choose between a single "totals" line or full line items.
- The provider parses the PDF (templates or heuristic), maps the fields, and attaches the original PDF to the draft bill.
Tips & troubleshooting
- If the PDF has little or no text, enable Auto-apply OCR or Always OCR and select appropriate languages.
- If logs mention "no PDF text backend," ensure you have pdftotext (poppler-utils) or pdfminer.six.
- Use extra labels to match your suppliers' wording (e.g., "Invoice ID, Rechnung Nr.").
International support
The heuristic is language-aware (dates/currency follow your company locale) while amounts are parsed with a country-neutral parser. Built-in multilingual label sets can be extended via extra labels in Settings.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module