OdooWiki OCA HUB

Stock Move picking assignment hook

stock_move_assign_picking_hook folder_open OCA/stock-logistics-workflow open_in_new
Warehouse Management License: AGPL-3

Tecnical module that allows to override the assignation of pickings to moves.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

This technical module adds a hook that lets developers change how Odoo chooses which existing transfer (picking) a stock move is attached to, without changing the standard rules for normal users.

This is a technical base module for developers and integrators. It does not add any new menu, screen, button or report, and it does not change what users see in the standard Odoo interface.

What it does: when Odoo needs to find an existing transfer (a stock.picking) to attach a stock move to, the module replaces the built-in search with a method that can be overridden. The default search still uses the usual criteria: same procurement group, same source location, same destination location, same operation type, not yet printed, not an immediate transfer, and in a state among draft, confirmed, waiting, partially available or assigned.

Because the search is now split into separate methods, other modules can change the search rules or the search domain without copying the whole standard code. This makes custom warehouse flows easier to maintain and upgrade.

It touches the stock.move model only. No scheduled jobs, emails, checks or computed fields are added. The module is marked Production/Stable and depends on the standard Inventory (stock) app.

Depends on

stock

Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0

Inherit from this module and override stock.move._domain_search_picking_for_assignation to modify the domain used to search for pickings.

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.