Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Inventory
  3. Prevent Negative Stock | Block Deliveries Without Stock | Odoo Disallow Negative Inventory v 19.0
  4. Sales Conditions FAQ

Prevent Negative Stock | Block Deliveries Without Stock | Odoo Disallow Negative Inventory

by CODEerts https://www.codeerts.com
Odoo
v 19.0 Third Party 4
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 19.0 20.0
You bought this module and need support? Click here!
Versions 19.0 20.0
  • Description
  • Manifest
  • License
CODEerts
Prevent Negative StockPrevent Negative Stock
Inventory: no more stock below zero

Stock that was never on the shelf cannot leave it.

Odoo validates a delivery even when the location does not hold the goods, and the quantity on hand goes below zero. This module checks the final stock when a transfer is validated and refuses it, with a message that names the product, the location and the missing quantity.

✓Refuses any validation that would leave an internal location below zero
✓Checks the exact lot, package and owner that was taken
✓Deliveries, internal transfers, scraps and manufacturing consumption
✓Allow Negative Stock per location or per product category when you need it
Odoo 19·Community & Enterprise
Delivery order refused with the message Not enough stock of Cordless Drill 18V in WH/Stock
0
units below zero by accident
2
places to allow exceptions
Lot
package and owner aware
0
settings to switch on
​What this module does​

A stock check at the moment of validation

Nothing changes in how people work, until a transfer takes more than the location holds.

​
01

The check

On every validation.

​
Final stock, not a guess. The check runs after Odoo updated the stock, on the quantity the location really ends with.
​
Exact lot and package. Each line is judged on its own lot, package and owner.
​
Untracked stock too. When a lot is short Odoo takes the rest from untracked stock in the same place; that is checked as well.
​
02

The message

What to fix, in one line.

​
Product and lot. The message names the product and, when there is one, the lot.
​
Location and quantity. It says which location would go below zero and by how much.
​
Nothing half done. The transfer stays as it was, ready to be corrected.
​
03

Exceptions

Where negative stock is fine.

​
Per location. Tick Allow Negative Stock on an internal location, for example one counted later.
​
Per product category. Tick it on a product category to let those products go below zero.
​
Managers only. Only Inventory Administrators see and change the options.
​see it in action​

A delivery without the stock behind it

Every picture is the real module on a demo database.

Delivery order for five cordless drills with a done quantity typed by hand

A quantity typed by hand

Five drills on a delivery, the done quantity entered although WH/Stock holds none.

Validation refused with the missing quantity

Validation refused

The message names the product, the location and the five units that would be missing.

Allow Negative Stock option on an internal location

An exception per location

Allow Negative Stock sits on the internal location form, off by default.

Allow Negative Stock option on a product category

An exception per category

Or allow it for one product category, such as service parts counted later.

​how it works​

Three steps, most of them already done

​
1
​

Install the module

From that moment every validation is checked. There is nothing to switch on.

​
2
​

Validate as usual

Transfers with enough stock go through as before. The others are refused with a clear message.

​
3
​

Allow exceptions if needed

An Inventory Administrator ticks Allow Negative Stock on a location or a product category.

​Technical details​

What it needs, and what it never does

Version
19.0
License
OPL-1
Editions
Community & Enterprise
Dependencies
Inventory

Requirements

✓Odoo 19, Community or Enterprise
✓Depends only on Inventory
✓No settings to configure
✓Technical name codeerts_stock_no_negative

Rules

✓Internal locations of storable products only
✓Consumables and customer or vendor locations are not checked
✓A category option does not apply to its child categories
✓Point of Sale leaves a delivery that would go negative open, for a check in Inventory
​good to know​

Frequently asked questions

Why does Odoo allow negative stock at all?

When someone types a done quantity by hand, Odoo validates the transfer even if the location does not hold it, and the quantity on hand goes below zero. There is no setting in Odoo to stop that. This module adds the check at validation.

What happens when there is not enough stock?

The transfer is not validated. A message names the product, the lot if there is one, the location and how many units would be missing, so the user can correct the quantity or the source location.

Can some locations or products still go negative?

Yes. Tick Allow Negative Stock on an internal location, or on a product category, and stock there may go below zero as in standard Odoo. The category option applies to that category only, not to its child categories.

Who can change these options?

Only Inventory Administrators see the Allow Negative Stock options. Changing the option on a product category also needs the right to edit product categories.

Does it work with lots, serial numbers and packages?

Yes. The check uses the lot, package and owner of each line. When a lot is short, Odoo takes the rest from untracked stock in the same place; that untracked stock is checked too.

What about Point of Sale?

A Point of Sale order is never blocked at the till. If its delivery would take stock below zero, Odoo's Point of Sale leaves that delivery open instead of validating it, so it can be checked in Inventory.

Does it work on Community and Enterprise?

Yes. It depends only on the Inventory app.

CODEerts
​The team behind this module​

About CODEerts

Full-Service Odoo ERP Company  ·  Solutions That Scale

Every module in our store is built from real client work, tested in production and maintained long-term by a team of experienced Odoo consultants. When you need more than an app, we deliver the full solution.

01
Implementation
Full Odoo roll-outs from requirements to go-live, across any industry and company size.
02
Custom Development
Bespoke modules, OWL components and business logic built precisely to your workflow.
03
Migrations
Zero-data-loss upgrades from older Odoo versions with full custom module porting.
04
Integrations
Payment gateways, shipping carriers, biometric devices, eCommerce and third-party APIs.
05
Odoo Audits
Performance, security and code-quality reviews that surface risks before they become problems.
06
Support & Training
Ongoing helpdesk, user training and monthly retainers so your team stays productive.
Odoo
Experts
6+
Years
150+
Projects
10+
Industries
230+
Published Apps
​CODEerts apps​

More from CODEerts

Other apps we build to make Odoo do more. Tap any card to open it on the Odoo Apps Store.

Archive AnythingFREE
Archive Anything
Transaction Flow VisualizerFREE
Transaction Flow Visualizer
Smart Mail RebrandFREE
Smart Mail Rebrand
Duplicate Record DetectorFREE
Duplicate Record Detector
AI Dashboard Builder
​
AI Dashboard Builder
Advance Payment Pro
​
Advance Payment Pro
Dual Book & Tax Depreciation
​
Dual Book & Tax Depreciation
Smart Duplicate Detector
​
Smart Duplicate Detector
See every CODEerts app on the Odoo Apps Store.
CODEerts
​Support​

Need Help?

Questions, customization requests, or bug reports. We respond fast.

Email Us
Support

CODEerts  ·  Response within 1-2 business days

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Discuss (mail)
Lines of code 100
Technical Name codeerts_stock_no_negative
LicenseOPL-1
Websitehttps://www.codeerts.com
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with