OdooWiki OCA HUB

Constrain package maximum weight

delivery_carrier_max_weight_constraint folder_open OCA/delivery-carrier open_in_new
Delivery License: AGPL-3

This module ensures the wizard of package type selection cannot create a package with a weight greater than the maximum configured on its packaging type if the constraint is enabled and maximum weight set.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a company-wide setting to forbid overweight packages and blocks the package selection wizard when the shipping weight exceeds the maximum weight allowed by the chosen package type.

This module lets you enforce a maximum weight limit on packages during delivery. It adds a company setting called "Overweight packages forbidden", available in the Inventory settings screen. When this setting is enabled, each package type gets an "Overweight forbidden" flag that is automatically turned on (you can still change it per package type).

When a user selects a package type in the delivery package wizard, Odoo checks the shipping weight against the maximum weight defined on that package type. If the weight is higher and the package type is marked as strict, the wizard refuses to proceed and shows an error: "The weight of your package is higher than the maximum weight authorized for this package type. Please choose another package type."

The module touches the company settings, the package type form (where the flag appears), and the delivery package selection wizard. It does not change any other delivery or stock flows.

Depends on

stock_delivery
Models and fields (4)
  • res.company · extends an existing modeldelivery_carrier_strict_weight_package (Overweight packages forbidden)
  • stock.package.type · extends an existing modelis_strict_weight (Overweight forbidden)
  • res.config.settings · extends an existing modeldelivery_carrier_strict_weight_package
  • choose.delivery.package · extends an existing model

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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0

The constraint can be enabled at two levels:

  • Company: Settings - Inventory - Shipping -> Overweight packages forbidden
  • Package type with company level as default

If the constraint is disabled at the package type level Odoo behaves the usual way.

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.