OdooWiki OCA HUB

Stock Lot Filter Available

stock_lot_filter_available folder_open OCA/stock-logistics-warehouse open_in_new
Warehouse License: AGPL-3

This module allows us to filter lots by available on our stock.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds an "On hand" filter to the lot/serial number search screen, so users can quickly show only the lots that still have stock available in Odoo.

This module makes it easier to find the lots and serial numbers that still have stock on hand. It adds a new filter called "On hand" to the search bar of the lot/serial number list (the stock.production.lot screen). When you switch it on, Odoo only shows lots whose available quantity is greater than zero.

The available quantity is worked out from the stock quantities recorded in internal and transit locations, so only real on-hand stock is counted. Lots that have no stock left are hidden when the filter is active.

Because the quantity used by the filter is a searchable value, the same logic can be used in other searches on lots, for example to look for lots with a quantity equal to zero, greater than a value, or below a value. Unsupported search comparisons are rejected.

  • Where it appears: the search bar of the lot/serial number screen, next to the product filter.
  • What it adds: an "On hand" filter that keeps only lots with available stock.
  • Business rule: availability is based on quantities in internal and transit locations.
  • Areas touched: lot/serial numbers (stock.production.lot) and stock quantities (stock.quant).

Depends on

stock
Models and fields (1)
  • stock.production.lot · extends an existing modelproduct_qty

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

terminal Installation and usage

OCA documentation · Odoo 15.0

To use this module:

  • Go to Inventory > Products > Lots/Serial Numbers.
  • Press Filters > On hand.

Now you will see just the lots with stock.

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.