OdooWiki OCA HUB

Stock packaging calculator packaging level

stock_packaging_calculator_packaging_level folder_open OCA/stock-logistics-warehouse open_in_new
Warehouse Management License: LGPL-3

Glue module for stock_packaging_calculator and product_packaging_type.

Mainly to use packaging type's code instead of packaging's name.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

This module changes how product quantities are shown by packaging: instead of the packaging name, Odoo displays the packaging level's code (or another chosen field). It is a small glue module that installs automatically with its two dependencies.

When quantities are displayed by packaging (for example in the packaging calculator), Odoo normally shows the packaging name. This module replaces that name with the name of the packaging level linked to the packaging, so users see the level's label rather than the individual packaging name.

It also changes the short quantity text that combines a number and a packaging label. By default it uses the packaging level's code field and joins the number and the code without a space (compact mode). Both the field used and the compact mode can be changed through the context, so other screens can request a different field or a spaced format.

If a packaging has no packaging level, the module falls back to the standard behaviour of the packaging calculator.

The change applies to the product model (product.product) and to the quantity-by-packaging display mixin (product.qty_by_packaging.mixin), which is used wherever quantities per packaging are computed. The display is recomputed when the language, the total-units option, the chosen level field or the compact option changes.

There are no new menus, buttons, reports or scheduled actions; the module only adjusts existing quantity displays. It is marked as auto-install, so it is enabled automatically when both stock_packaging_calculator and product_packaging_level are installed.

Models and fields (1)
  • product.qty_by_packaging.mixin · extends an existing 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-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/stock-logistics-warehouse.

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.