OdooWiki OCA HUB

Mrp Lot On Hand First

mrp_lot_on_hand_first folder_open OCA/manufacture open_in_new
Manufacturing/Manufacturing License: AGPL-3

This module allows to display lots with a quantity on hand as first results in the lots selection fields for of Mrp Productions 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 15.0

Shows lots that are still in stock first when selecting lots on a manufacturing order, so users avoid picking old lots that are no longer available.

When you record lot or serial numbers on a manufacturing order, Odoo normally lists lots in their usual order, which can put old lots that are no longer in stock at the top. This module changes that behaviour so lots with a quantity on hand appear first in the selection list.

The setting is controlled per operation type. On the Operation Types screen (the configuration behind manufacturing and other stock operations) a new checkbox "Display lots on hand first" appears next to the existing option for creating component lots. When it is ticked, every manufacturing order that uses that operation type inherits the behaviour automatically.

On the manufacturing order form, the choice is read from the operation type and applied to the lot selection fields inside the component moves. Users do not have to configure anything on each order; they simply see in-stock lots at the top of the list when choosing lots for components.

This module extends mrp.production and stock.picking.type and relies on the lot on-hand first logic provided by the stock lot module it depends on. It installs automatically when its dependencies are present.

Models and fields (1)
  • mrp.production · extends an existing modeldisplay_lots_on_hand_first

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

Confirmed on 2026-11-03 in branch 15.0 of OCA/manufacture.

terminal Installation and usage

No verified information

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.

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.