This module extends the sale_order_import module to help on importing the packaging information into the sales order line.
If for a sale line the product is detected by the code on one of its packaging, then this corresponding packaging will be set on the order line. Also the quantity received during the import will be set as the quantity of packaging and not as the product quantity on the line.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0When importing a sales order from a file, if the product is identified by a packaging barcode, Odoo automatically sets that packaging on the order line and treats the imported quantity as a number of packages instead of single units.
This module works together with the sales order import feature. When a document (for example a customer order file) is imported, Odoo tries to recognise each product. If the code found in the file matches the barcode of one of the product's packagings, the import no longer treats the quantity as individual units.
- On a new order line, the matching packaging is set on the line, the imported quantity becomes the number of packages, and the total product quantity is recalculated by multiplying that number by the quantity contained in one package.
- When an existing order line is updated by a new import, the same logic applies: the packaging is changed if needed, the quantity is recalculated, and if the imported code no longer matches a packaging, the packaging is removed from the line.
The change appears on the sales order line itself, in the packaging and quantity fields, so users see the correct packaging and package count without editing anything manually. It relies on the product packaging configuration (barcodes and quantities per package) and affects the sales order import process and the resulting sale.order lines. No new menus, buttons, reports or scheduled actions are added.
Depends on
Models and fields (2)
- sale.order.import · extends an existing model
- business.document.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.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.