OdooWiki OCA HUB

Purchase Order UBL

purchase_order_ubl folder_open OCA/edi open_in_new
Purchase Management License: AGPL-3

This module adds support for UBL, the Universal Business Language (UBL) standard, on purchase orders. The UBL 2.1 standard became the ISO/IEC 19845 standard in December 2015 (cf the official announce).

With this module, when you generate the purchase order or RFQ report:

  • on a draft/RFQ/Bid Received purchase order, the PDF file will have an embedded XML Request For Quotation file compliant with the UBL 2.1 or 2.0 standard.
  • on an approved purchase order, the PDF file will have an embedded XML Order file compliant with the UBL 2.1 or 2.0 standard.

If your supplier has Odoo and has installed the module sale_order_import_ubl, he will be able to import the PDF file and it will automatically create the quotation/sale order.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When you print a purchase order or request for quotation (RFQ) PDF, this module automatically embeds a UBL XML file inside the PDF. The XML follows the UBL 2.1/2.0 standard so suppliers can import it into their own systems.

This module changes what happens when you print a purchase order or RFQ from Odoo. Instead of producing a plain PDF, Odoo now attaches a machine-readable UBL XML file inside the same PDF.

  • For draft, sent or to-approve purchase orders (RFQs), the embedded file is a UBL RequestForQuotation document.
  • For confirmed purchase orders, the embedded file is a UBL Order document.

The XML is built from the order data: order reference, dates, currency, supplier and buyer parties, delivery address, incoterm, payment terms, monetary totals and each order line with product, quantity, unit of measure and price. The document language follows the supplier's language.

Before embedding, the generated XML is checked against the UBL schema, so invalid documents are not silently attached. If the PDF already contains the same XML file, it is not added twice.

This works through the standard purchase order report, so users do not need a new menu or button: they simply print the RFQ or purchase order as usual. The module extends the purchase.order model and the report engine, and relies on UBL generation, UNECE tax codes and PDF/XML attachment tools.

Models and fields (1)
  • purchase.order · new model

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 6 confirmed, 3 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.