Stock Picking Reservation Policy
stock_picking_reservation_policy · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Description
By default, Odoo reserves whatever quantity is available for a transfer's lines (stock moves), leaving the rest as partially available.
This module adds a Reservation Policy that controls this behavior, on the operation type and on the transfer itself:
- Partial: reserve whatever quantity is available (standard behavior).
- All or nothing per line: each transfer line (stock move) is reserved only if its full quantity can be reserved from stock; otherwise that line stays entirely unreserved.
The all-or-nothing rule is applied per line (stock.move), independently for each line of the transfer — not on the transfer as a whole. One line may be fully reserved while another, short on stock, stays unreserved.
The transfer defaults its policy from the operation type, and the value can be adjusted on the transfer.
It is similar in spirit to the Shipping Policy (move_type), but it applies at
reservation time on each line, rather than at delivery time. It only affects
reservation from stock: lines fed by chained (origin) moves keep their standard
behavior.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_picking_form |
stock.picking | form | Inherits stock.view_picking_form | |
view_picking_type_form |
stock.picking.type | form | Inherits stock.view_picking_type_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
-
reservation_policySelectioncompute='_compute_reservation_policy'help=RESERVATION_POLICY_HELPprecompute=Truereadonly=Falserequired=Trueselection=RESERVATION_POLICY_SELECTIONstore=True
No public methods.
-
reservation_policySelectiondefault='direct'help=RESERVATION_POLICY_HELPrequired=Trueselection=RESERVATION_POLICY_SELECTION
No public methods.
Loading…