OdooWiki OCA HUB

Inventory Lock Down Product

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

By default, stock_inventory_lockdown blocks any stock movement to or from locations involved in an in-progress inventory adjustment.

With this module installed and enabled, the restriction becomes product-aware if you activate a setting.

In Configuration / Settings mark the option to use a soft lockdown in the company

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a company setting that makes inventory lockdown product-aware: during an inventory adjustment, only moves of products actually included in that adjustment are blocked.

This module refines the inventory lockdown behaviour so it no longer blocks every stock move at a location being counted. Instead, it only blocks moves of the products that are part of the ongoing inventory adjustment.

Where it appears: - A new option "Use Product-Aware Inventory Lock" is added to the Inventory settings screen, inside the inventory settings block. - The option is stored per company, so each company can enable or disable it independently.

What it changes: - When the option is enabled for a company, the system checks each completed stock move line. If the destination or source location is involved in an in-progress inventory adjustment, and the product being moved is included in that adjustment, the move is rejected with a clear error message listing the affected locations and the product. - Moves of products that are not part of the ongoing adjustment are allowed. - Moves to or from inventory-type locations are not blocked. - When the option is disabled, the original lockdown behaviour from the base module applies unchanged.

It touches the company settings, the inventory adjustment records, and stock move lines, and it relies on the base inventory lockdown module.

Models and fields (4)
  • res.company · extends an existing modeluse_soft_inventory_lock (Use Product-Aware Inventory Lock)
  • stock.inventory · extends an existing model
  • stock.move.line · extends an existing model
  • res.config.settings · extends an existing modeluse_soft_inventory_lock

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

Sources · Odoo 19.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

Stock moves to or from locations involved in open inventory adjustments will only be blocked if the moved product is also listed in the adjustment.

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.