Purchase 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 purchase orders based on the packaging of the products ordered, and updates those deposit quantities when the related stock moves are completed.
When you buy products that come in packaging with a container deposit (for example a pack of 12, a pack of 24 or a pallet), this module adds the matching deposit lines to the purchase order for you, so you do not have to add them by hand.
The calculation is based on the ordered quantity and the packaging used on the order line. The biggest packaging is used by default, and if a specific packaging is chosen on the line, that packaging is used instead. Deposit lines for the same container are grouped, so two products that share the same deposit produce a single combined deposit line.
The module works on purchase orders (purchase.order) and their lines (purchase.order.line), and it also hooks into stock moves (stock.move). When a receipt is validated, the deposit quantities on the related purchase order are recalculated automatically.
It relies on the container deposit features of the product packaging module, so the deposit products and their links to packaging must already be configured. No new menus or screens are added; the behaviour appears directly inside the purchase order form as extra order lines.
Depends on
Required by other modules
Models and fields (3)
- stock.move · extends an existing model
- purchase.order · new model
- purchase.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/purchase-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.