OdooWiki OCA HUB

Sale Disable Inventory Check

sale_disable_inventory_check folder_open OCA/sale-workflow open_in_new
Sale License: AGPL-3

Disable warning 'Not enough inventory' when there isn't enough product stock

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Removes the 'Not enough inventory' warning that normally appears on sales order lines when the ordered quantity exceeds available stock.

When you add a product to a sales order and the quantity you enter is more than the stock on hand, Odoo (through the Sales and Inventory apps) usually shows a warning about insufficient inventory. This module turns that warning off.

It works by replacing the automatic check that runs on each sales order line whenever the quantity, unit of measure or delivery route changes. Instead of running the standard availability check, the module simply returns no warning, so users can confirm sales orders for products that are not currently in stock without being interrupted.

  • Applies to sales order lines (sale.order.line) in the Sales app.
  • Triggers when the ordered quantity, the unit of measure or the delivery route is changed on a line.
  • No new menus, buttons, reports or settings are added; the change is invisible except that the warning no longer appears.
  • No stock levels, reservations or deliveries are modified — only the warning message is suppressed.

One exception exists for automated tests: when Odoo runs in test mode and the special test flag is not set, the original warning behaviour is kept so standard tests still work. In normal day-to-day use, the warning is disabled.

Depends on

sale_stock
Models and fields (1)
  • sale.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/sale-workflow.

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.