OdooWiki OCA HUB

Sale Order UBL

sale_order_ubl folder_open OCA/edi open_in_new
Sales License: AGPL-3

This module adds support for UBL, the Universal Business Language (UBL) standard, on sale 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 sale order report:

  • on a draft/sent quotation, the PDF file will have an embedded XML Quotation file compliant with the UBL 2.1 or 2.0 standard.
  • on a confirmed sale order, the PDF file will have an embedded XML Order Response Simple file compliant with the UBL 2.1 or 2.0 standard.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

When you print a quotation or a confirmed sale order, this module embeds a UBL XML file inside the PDF, so the document can be exchanged electronically with customers and public administrations.

This module adds UBL (Universal Business Language) support to sale orders. When you print the standard sale order report, the generated PDF also contains an embedded XML file that follows the UBL 2.1 (or 2.0) standard.

  • For a draft or sent quotation, the embedded XML is a UBL Quotation document.
  • For a confirmed sale order, the embedded XML is a UBL Order Response Simple document.

The XML is built from the sale order data: order reference, dates, company and customer details, delivery address, incoterms, currency, untaxed and total amounts, and each order line with product, quantity, unit of measure, price and taxes. The XML is validated against the UBL schema before being embedded.

The module only applies to the standard sale order report (sale.report_saleorder) and only when a single sale order is printed. You can disable the embedded XML by using the no_embedded_ubl_xml context, and you can choose the UBL version with the ubl_version context (default 2.1). The XML language follows the customer's language.

No new menus or screens are added; everything happens automatically when printing the sale order PDF.

Depends on

Models and fields (2)
  • sale.order · new model
  • ir.actions.report · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 14.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.