OdooWiki OCA HUB

Test Base Import Pdf by Template

test_base_import_pdf_by_template folder_open OCA/edi open_in_new
Uncategorised License: AGPL-3

Test suite for base_import_pdf_simple. Normally you don't need to install this.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

This is a test module that creates sample data (a vendor, products and a PDF import template) to check that the PDF import by template feature works for purchase orders. It is not meant for real business use.

This module is a test suite. It does not add new screens or buttons for everyday users; instead it loads demo data so that the PDF import by template functionality can be verified.

When installed, it creates a vendor called Decathlon and several products (Test Mochila, Test Aislante, Test Hamaca, Test Botiquin, and a generic product). Each product is linked to a supplier reference code from Decathlon, so the system can recognise them in a PDF.

It also creates a PDF import template named "Purchase Orders Decathlon" for the purchase order model. This template defines how to read a Decathlon purchase order PDF: it detects the document by the pattern (ESA79935607), fills the vendor, the vendor reference, the origin, and each order line's product, quantity and unit price. Products are matched using the supplier's product code.

A post-installation script sets a default product for the template line, so that if a product code is not found, the generic product is used.

Because this is a test module, it is normally not installed in production. Its purpose is to ensure the underlying PDF import feature works correctly with purchase orders.

Depends on

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.