OdooWiki OCA HUB

Stock Picking Put In Pack Restriction

stock_picking_putinpack_restriction folder_open OCA/stock-logistics-workflow open_in_new
Inventory License: AGPL-3

This module adds an option on stock operation type to force or disallow the use of destination pacakges.

When destination packages are not allowed the Put In Pack button will be hidden on related transfer.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a setting on each operation type to forbid or require destination packages. When packages are not allowed, the Put In Pack button is hidden and any attempt to use a package is blocked.

This module gives warehouse managers control over whether destination packages may be used on a given type of transfer.

On each operation type (for example Receipts, Delivery Orders, Internal Transfers) a new field appears on the operation type form, right after the existing option about showing entire packs. It offers three choices: not set (no restriction), "Destination Package Not Allowed", and "Destination Package required".

On a transfer, the same setting is shown read-only, taken from its operation type. If the operation type says packages are not allowed, the Put In Pack button is hidden on that transfer, and trying to put items in a pack is refused with an error message naming the transfer type.

When the transfer is validated, the system checks each line: if packages are not allowed but a destination package was set, validation is blocked with an error; if a package is required but none was set, validation is also blocked with an error. This applies to stock.move.line records through the _action_done method.

The module touches stock.picking.type, stock.picking and stock.move.line, and adds fields to the operation type form and the transfer form.

Depends on

stock
Models and fields (3)
  • stock.picking · extends an existing modelput_in_pack_restriction
  • stock.move.line · extends an existing model
  • stock.picking.type · extends an existing modelput_in_pack_restriction

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

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

Just set the option on some transfer type.

The options are:

  • Not set: no restriction, normal process.
  • With Package: the use of a destination package is mandatory.
  • No Package: destination package are not allowed.

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.