Constrain package maximum weight

delivery_carrier_max_weight_constraint
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/18.0/delivery_carrier_max_weight_constraint
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDelivery
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Bhavesh Heliconia
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock_delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form (in delivery_carrier_max_weight_constraint) res.config.settings xpath Inherits stock.res_config_settings_view_form
stock_package_type_form_delivery stock.package.type.form.delivery (in delivery_carrier_max_weight_constraint) stock.package.type field Inherits stock_delivery.stock_package_type_form_delivery
view_delivery_carrier_form delivery.carrier.form (in delivery_carrier_max_weight_constraint) delivery.carrier group Inherits delivery.view_delivery_carrier_form
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • is_strict_weight_package Boolean
    compute='_compute_is_strict_weight_package' help="The maximum weight of packages can't be exceeded." readonly=False store=True string='Overweight package forbidden'
Public methods (0)

No public methods.

New fields (1)
  • delivery_carrier_strict_weight_package Boolean
    default=False string='Overweight packages forbidden'
Public methods (0)

No public methods.

New fields (1)
  • delivery_carrier_strict_weight_package Boolean
    readonly=False related='company_id.delivery_carrier_strict_weight_package'
Public methods (0)

No public methods.

New fields (1)
  • is_strict_weight Boolean
    compute='_compute_is_strict_weight' help="The maximum weight of the package can't be exceeded." readonly=False store=True string='Overweight forbidden'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/16.0/delivery_carrier_max_weight_constraint
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYDelivery
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, hda
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:52
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form (in delivery_carrier_max_weight_constraint) res.config.settings xpath Inherits stock.res_config_settings_view_form
stock_package_type_form_delivery stock.package.type.form.delivery (in delivery_carrier_max_weight_constraint) stock.package.type field Inherits delivery.stock_package_type_form_delivery
view_delivery_carrier_form delivery.carrier.form (in delivery_carrier_max_weight_constraint) delivery.carrier group Inherits delivery.view_delivery_carrier_form
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • is_strict_weight_package Boolean
    compute='_compute_is_strict_weight_package' help="The maximum weight of packages can't be exceeded." readonly=False store=True string='Overweight package forbidden'
Public methods (0)

No public methods.

New fields (1)
  • delivery_carrier_strict_weight_package Boolean
    default=False string='Overweight packages forbidden'
Public methods (0)

No public methods.

New fields (1)
  • delivery_carrier_strict_weight_package Boolean
    readonly=False related='company_id.delivery_carrier_strict_weight_package'
Public methods (0)

No public methods.

New fields (1)
  • is_strict_weight Boolean
    compute='_compute_is_strict_weight' help="The maximum weight of the package can't be exceeded." readonly=False store=True string='Overweight forbidden'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/delivery-carrier
PULL REQUEST
PULL REQUEST[17.0][MIG] delivery_carrier_max_weight_constraint: Migration to 17.0 (#950)