OdooWiki OCA HUB

Inventory Lock Down

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

This module lets you lock down the locations during an inventory.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Prevents stock movements and location changes while an inventory count is in progress. Locations being counted are locked, so users cannot move products in or out of them until the inventory is finished.

This module adds a lockdown on stock locations while an inventory count is running. When an inventory is in progress, the locations it covers (and, if the inventory includes sub-locations, their child internal locations) are considered locked.

  • Users cannot move products into or out of a locked location: any completed stock move line touching a locked location is blocked with an error listing the affected locations. Moves to or from inventory adjustment locations are still allowed.
  • Users cannot change the parent location of a location that is under an active inventory, and they cannot delete such a location; both actions raise an error saying an inventory is being conducted there.

The lock applies to internal and transit locations. It works automatically through checks on stock locations and stock move lines, and it relies on the inventory records to know which locations are currently being counted. No new menus or screens are added; the behaviour appears as validation messages when users try to move stock or modify locations during an inventory.

Depends on

Required by other modules

Models and fields (3)
  • stock.location · extends an existing model
  • stock.inventory · extends an existing model
  • stock.move.line · extends an existing model

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: 7 confirmed, 2 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 19.0

While an inventory is in the state "In progress", no stock moves can be recorded in/out of the inventory's location: users will get an error message. Creating or modifying locations is also forbidden.

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.