OdooWiki OCA HUB

Product Packaging Container Deposit

product_packaging_container_deposit folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

Allow to indicate on a product packaging package type that it comes with a container deposit. The deposit product should be a service product. For instance, you can create a package type "plastic box" and indicate as container deposit "plastic box deposit".

Use the corresponding sales and purchase modules to add the deposit fees in the order. Each packaging level can have a deposit. The biggest package type of each packaging level will be used in the computation unless a specific package type is given on the order line.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you set a container deposit product on a package type, and automatically adds or updates deposit lines on sales and purchase orders based on the packaging used.

This module links a package type (for example a plastic box) to a deposit product, which must be a service product. You set this on the package type form, where a new "Container deposit product" field appears.

When order lines use products with packagings, the module calculates how many containers are needed per packaging level and automatically creates or updates deposit lines on the order. These deposit lines are marked with a flag so they can be recognised and are placed at the end of the order.

  • If the quantity of a deposit line becomes zero, it is emptied; in draft orders the line is removed after the transaction is committed.
  • The deposit quantity is recalculated when order line quantities change, when lines are created, or when the order is written.
  • Copying an order skips the automatic recalculation.

The module works on both sales and purchase orders through shared mixins, and adds a helper on product.product to compute deposit quantities per packaging level. The largest packaging of each level is used unless a specific packaging is set on the order line.

Models and fields (4)
  • product.product · extends an existing model
  • stock.package.type · extends an existing modelcontainer_deposit_product_id
  • container.deposit.order.mixin · new model
  • container.deposit.order.line.mixin · new modelis_container_deposit

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation 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/product-attribute.

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.