OdooWiki OCA HUB

Stock Rule Reserve Max Quantity

stock_rule_reserve_max_quantity folder_open OCA/stock-logistics-reservation open_in_new
Inventory/Inventory License: LGPL-3

This module extends the functionality of chained (pull) stock reservation to support the reservation of the total quantity brought by the done and pregenerated chained move lines. By default, the reservation on each step of the chain is limited to the need. If you pick more than the need, with this module the chained moves will reserve the total picked quantity.

This operation will only apply when the available quantity exceeds the demanded quantity and the stock rule linked to the stock move has the field Reserve Max Quantity activated.

This module is not needed if you use chained pickings and the creation of those is placed when the a picking is validated.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a "Reserve Max Quantity" option on stock rules so that, when more goods are picked than needed, the next steps of the chain reserve the full picked quantity instead of only the required amount.

This module adds a single checkbox, "Reserve Max Quantity", on the stock rule form (the rules that drive how Odoo moves and reserves stock between locations). It appears in the same group as the other rule propagation settings.

When that checkbox is ticked on a rule, any stock move created by that rule changes how it reserves stock: instead of reserving only the quantity demanded by the next step, it looks at the quantity already done on the previous moves of the chain and reserves up to that amount, as long as stock is available. In practice, if a warehouse worker picks more than the planned quantity, the following step of the chain will reserve the extra picked quantity too, so the surplus is not left unreserved.

The behaviour only kicks in when the rule has the option enabled and when there is enough available stock; otherwise the standard reservation logic applies. It affects stock moves and stock rules in the Inventory app. No new menus, reports or scheduled jobs are added.

Depends on

stock
Models and fields (1)
  • stock.rule · extends an existing modelreserve_max_quantity

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/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Enter on debug mode
  • On your Warehouse, activate 2 or 3 steps for Outgoing Shipments
  • Go to Warehouse routes and open pick + ship (2 steps) or pick + pack + ship (3 steps)
  • Activate Reserve Max Quantity under the Propagation group in all rule steps except the first one
  • Create a sale with a storeable product and confirm it and has enough stock.
  • Go to the first picking and set quantity done over the quantity demanded and validate it.
  • Check that the next picking will reserve the entire quantity previously made instead of the quantity demanded.

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.