Stock Lot On Hand First
This module allows to display lots with a quantity on hand as first results in the selection field of Detailed Operations (stock.move.line) in order to avoid displaying old lots that are not in stock anymore.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Adds an option on operation types to show lots that still have stock first when picking a lot in transfers, so users see available lots before old empty ones.
This module helps warehouse users choose the right lot when recording stock moves. It adds a new setting called "Display lots on hand first" on each Operation Type (for example Receipts, Delivery Orders, Internal Transfers). The setting only appears when the operation type already uses existing lots.
When the setting is turned on, the lot selection field in the Detailed Operations screen of a transfer lists lots that still have a quantity on hand first, and lots with no stock left at the end. This makes it faster to pick a lot that is actually available.
The option is stored on the operation type and automatically follows through to the related transfers and move lines, so users do not have to set it again on each document. If the operation type stops using existing lots, the option is automatically switched off.
The module touches the stock models stock.picking.type, stock.picking, stock.move, stock.move.line and stock.lot. It changes the lot search behaviour only when the option is active; otherwise lot selection works as usual.
Depends on
Required by other modules
Models and fields (4)
- stock.move · extends an existing modeldisplay_lots_on_hand_first
- stock.picking · extends an existing modeldisplay_lots_on_hand_first
- stock.move.line · extends an existing modeldisplay_lots_on_hand_first
- stock.picking.type · extends an existing modeldisplay_lots_on_hand_first
Text generated by AI (DeepSeek) from reading the Odoo 17.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-03Confirmation status: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
OCA documentation · Odoo 17.0Configuration
Source · Odoo 17.0On the Operations types (stock.picking.type) an extra checkbox will appear if Use Existing Lots/Serial Numbers is selected, to allow reordering the results appearing in the selection.
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.