OdooWiki OCA HUB

Stock picking filter lot

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

This module extends the functionality of stock: in a picking out or a scrap the user can only select the lots available in the origin location.Lots must have a company assigned to them for proper filtering.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When you pick or scrap a tracked product, the lot/serial number list only shows lots that are actually available in the source location, so you cannot select a lot that is not there.

This module makes lot and serial number selection smarter during warehouse operations. It adds a computed "Locations" field on lots (stock.lot) that lists every location where that lot currently has positive stock, based on its quants.

Because of this, the lot dropdown is filtered in three places:

  • In the detailed operations list of a transfer (stock.move.line), the lot field only offers lots of the same product, in the same company, that are present in (or below) the source location of the move line.
  • In the scrap form (stock.scrap), the same filtering applies, so you can only scrap a lot that is available in the chosen source location.
  • The source location field on the scrap form is now only shown to users who have both the multi-locations and the lot/serial tracking settings enabled.

No new menus or reports are added; the change is purely a restriction on what you can choose. The lot list is recalculated automatically whenever the lot's stock quantities or their locations change. Lots must have a company assigned for the filtering to work correctly.

Depends on

stock

Required by other modules

Models and fields (1)
  • stock.lot · extends an existing modellocation_ids (Locations)

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module:

  • Go to an open picking or a scrap with products that are tracked by lots.
  • When you enter detailed operations you will notice that the lots available to select are filtered by the origin of the operation.
  • Note that lots must have a company assigned to them for proper filtering.

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.