OdooWiki OCA HUB

Stock Inventory Location State

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

At inventory start, generate link to all sublocations of inventory locations. Forbid to validate an inventory if not all sublocations have been inventoried.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Track each sub-location of an inventory and prevent validating the inventory until every sub-location has been counted. A counter button on the inventory form shows how many locations are done.

When an inventory is started, Odoo automatically creates one line per sub-location to be counted, each with a status: Pending, Started or Done. A counter button on the inventory form shows how many locations are done out of the total, and opens the list of these locations.

From that list you can: - Start counting a location (Start button). - Mark it as counted (Done button), only possible once it has been started. - Re-open it (Re-open button) as long as the whole inventory has not been validated. - Open the inventory lines for that location (Inventory Lines button), filtered on that location.

Business rules: the same location cannot appear twice in the same inventory; a location cannot be marked done before being started; and the inventory itself cannot be validated while any sub-location is still not done — Odoo lists the missing locations in the error message. Putting the inventory back to draft resets all sub-locations to Pending.

The module adds the stock.inventory.location model and extends stock.inventory with the sub-location list and the three counters. It is visible to stock users and managers.

Depends on

Models and fields (2)
  • stock.inventory · extends an existing modellocation_count (Number of Sub-Locations), sub_location_ids (Sub-Locations), done_location_count (Number of Done Sub-Locations), remaining_location_count (Number of Remaining Sub-Locations)
  • stock.inventory.location · new modelstate, location_id, inventory_id

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 18.0

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

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.