Sale Product Packaging Container Deposit
This module allows you to add product packaging to an order automatically. Based on the order line quantity with associated packaging, the quantity of product packaging is calculated and added to the order.
Hypothesis:
- package type "Pack of 12" has the container deposit "pack of 12"
- package type "Pack of 24" has the container deposit "pack of 24"
- package type "EUROPAL" has the container deposit "EU pallet"
Order Line:
- Case 1: Product A | qty = 280. Result:
- 280 // 240 = 1 => add order line for 1 EU pallet
- 280 // 24 (biggest PACK) => add SO line for 11 pack of 24
- Case 2: Product A | qty = 280 and packaging=Pack of 12. Result:
- 280 // 240 =1 => add order line for 1 EU pallet
- 280 // 12 (forced packaging for PACK) => add order line for 23 pack of 12
- Case 3: Product A & Product B. Both have a deposit of 1 pack of 24
- only one line for 2 pack of 24
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Automatically adds container deposit lines to sales orders based on the packaging used, and updates them when products are delivered.
This module connects sales orders with the container deposit feature. When a sales order is confirmed or its quantities change, the system looks at the packaging chosen on each order line and automatically adds the matching container deposit products as extra order lines.
- The deposit quantity is calculated from the ordered quantity and the packaging (for example, packs of 12, packs of 24, or pallets).
- If the same deposit product appears on several lines, the quantities are combined into a single deposit line.
- When products are actually delivered (the stock move is completed), the deposit quantities on the sales order are recalculated automatically.
- The module also allows the ordered quantity field to be updated by this automatic process, even though it is normally protected from changes.
It works together with sale_stock and the container deposit module, and touches sale.order, sale.order.line and stock.move. No new menus or screens are added; the deposit lines simply appear inside the existing sales order form.
Depends on
Required by other modules
Models and fields (3)
- sale.order · new model
- stock.move · extends an existing model
- sale.order.line · new model
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/sale-workflow.
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.