OdooWiki OCA HUB

Delivery Estimated Package Quantity By Weight

delivery_estimated_package_quantity_by_weight folder_open OCA/delivery-carrier open_in_new
Uncategorised License: AGPL-3

This module computes the amount of packages a picking out should have depending on the weight of the products and the limit fixed by the carrier. It's fully independent of the delivery_package_number module.

A warning is given if the number of packages for the picking out is above what is considered as the theoretical number of packages for this picking and the chosen carrier. The goal is to minimize the number of packages billed by the carrier.

The chosen strategy for the theoretical number of packages is as follow:

  • Split the product_weights into as many items as we have
  • Try to fit the heaviest product with the lightest. If it does not work then the heaviest should have a box for itself
  • While the weight of products does not exceed the limit, continue adding products in the same package

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a maximum weight per package on delivery carriers and shows, on outgoing transfers, how many packages are needed versus how many were actually packed, warning you when you use too many.

This module helps you avoid paying for more packages than necessary when shipping with a carrier.

On each delivery carrier you can now set a "Maximum weight per package" (shown with the weight unit used in Odoo). The field appears on the carrier form and in the carrier list.

On outgoing transfers (deliveries) that use a carrier with a maximum weight per package, Odoo displays a "Number of packages" indicator near the top of the transfer form. It shows the number of packages actually packed (based on the packages assigned to the transfer's detailed operations) over the theoretical number of packages the shipment should need, calculated from the products' weights and the carrier's limit.

If the number of packages actually used is higher than the theoretical number, a warning banner appears on the transfer: "The number of packages outranged the adviced number of packages". This is only a warning; nothing is blocked.

The calculation and the indicator only apply to outgoing transfers with a carrier that has a maximum weight per package; otherwise the fields stay hidden. The module extends delivery.carrier and stock.picking and adds views on the carrier form, carrier list and transfer form.

Depends on

stock_delivery
Models and fields (2)
  • stock.picking · extends an existing modelnumber_of_packages_done (Number of packages in a picking out), is_number_of_packages_visible (Number of packages visible), theoretical_number_of_packages (Theoretical number of packages in a picking out), is_number_of_packages_outranged (Too many packages compared to the theoretical number)
  • delivery.carrier · extends an existing modelweight_uom_name (Weight unit of measure label), maximum_weight_per_package (Maximum weight per package)

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

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/delivery-carrier.

terminal Installation and usage

OCA documentation · Odoo 18.0

Here are some limitations of the module:

  • Product packagings are not supported
  • Multiple package types having different max weight for a shipping method are not supported

No verified information in OCA: Installation, Configuration.

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.