OdooWiki OCA HUB

Sale Order UBL Import - Import order line customer ref

sale_order_import_ubl_line_customer_ref folder_open OCA/edi open_in_new
Sales Management License: AGPL-3

This is a glue module between sale_order_import_ubl and sale_stock_line_customer_ref. It extracts customer references for specific lines from the XML received.

Since there's no specific element for customer reference in the UBL line, the module will look into cac:OrderLine/cbc:Note and cac:OrderLine/cac:LineItem/cbc:Note for a string prefixed with customer_ref:.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When importing a UBL sale order, this module reads a customer reference written in the order line notes and stores it on the matching sale order line.

This module works together with the UBL sale order import and the sale order line customer reference features. It does not add any new screen or menu; it changes what happens while a UBL order file is being imported.

  • During import, for each order line the module looks at the line notes coming from the XML file.
  • If a note line contains the text customer_ref:, the text after that prefix is taken as the customer reference for that line.
  • That reference is then saved on the created sale order line, so users can see the customer's own article or reference number directly on the line.
  • If the line already has a customer reference, the imported value is not used, so existing data is not overwritten.
  • The same logic is applied when an existing order line is updated during import.

The module touches the sale order import wizard (sale.order.import) and the sale order line data it prepares. It relies on the notes extracted from cac:OrderLine/cbc:Note and cac:OrderLine/cac:LineItem/cbc:Note in the UBL file. No new checks, emails or scheduled jobs are added.

Models and fields (1)
  • sale.order.import · extends an existing model

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: 2 confirmed, 7 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.