Account EDI UBL move line uom and packaging By UNECE
Adds support for UNECE unit codes during UBL invoice import to automatically detect and assign the appropriate unit of measure or product packaging on invoice lines.
When a UNECE code matches a product packaging, the packaging is set with priority. Otherwise, the corresponding unit of measure is applied based on the UNECE code.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0When importing supplier invoices in UBL format, Odoo now reads the UNECE unit code on each line and automatically sets the matching unit of measure or product packaging, adjusting quantities and unit prices accordingly.
This module improves the import of supplier invoices that arrive in the UBL electronic format. While importing, Odoo reads the unit code written on each invoice line and uses it to choose the right unit of measure or the right packaging for the product.
- If the code matches a packaging level defined for the product, the packaging is applied first: the packaging quantity is set to the billed quantity and the unit price is recalculated by dividing the imported price by the packaging quantity.
- If no packaging matches, Odoo looks for a unit of measure with the same UNECE code. The unit is only applied when it belongs to the same category as the product's default unit; otherwise the line is left unchanged.
- Three technical fields are stored on invoice lines: the UNECE unit code, the billed quantity and the imported unit price. They are read-only and mainly used to keep the original supplier data available during purchase reconciliation.
On the invoice form, the UNECE unit code and the imported unit price can be shown as optional columns on invoice lines for supplier invoices, so users can check what was received from the supplier. The module works together with the UBL import, unit of measure and packaging modules, and touches account.move.line and the UBL import process.
Depends on
Required by other modules
Models and fields (1)
- account.move.line · extends an existing modelubl_price_unit (UBL P.U), ubl_billed_quantity, ubl_unece_unit_code (Unece Unit Code)
Text generated by AI (DeepSeek) from reading the Odoo 16.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/edi.
terminal Installation and usage
No verified informationInstallation 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.
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.