No Negative Stock
Prevent stock quantities from going below zero
By default, Odoo lets a transfer be validated even when the stock is not there, and the quantity on hand quietly goes below zero. The error surfaces weeks later, at the next inventory count. This module stops the move at validation instead, and tells the user what is actually left in the location.
- Blocks negative stock at validationA transfer that would take an internal location below zero cannot be validated.
- Clear messageThe user sees the product, the location and the quantity that would remain, and is pointed to adjust the quantities or correct the stock.
- Exceptions per locationAllow negative stock on the locations where you need it, such as a production floor or a transit area.
- Checked on the physical stockThe quantity on hand in the location, per lot, package and owner, not the forecast.
- Safe for multi-line transfersSeveral lines of the same product in one validation are added up, so they cannot overdraw the stock together.
- Serial numbers, strict or by totalPer location, check serial-tracked products on the serial number of the line or on the total of the location.
- Point of Sale friendlyGoods sold at the register have already left the shop, so Point of Sale receipts go through by default; each bypass is logged and the shortfall stays visible as negative stock to correct.
- Only products with tracked stockConsumables without Track Inventory are not checked, since Odoo keeps no stock for them.
- Company settingTurn the rule on or off separately for each company.
-
Go to Inventory > Configuration > Settings, section Traceability, and enable No negative stock. The setting applies to the current company; in a multi-company database, enable it on each company.
-
Right below it, decide on Allow negative stock from Point of Sale (enabled by default). Point of Sale validates the delivery of a receipt in the background and does not show the cashier an error, so a refused delivery would only leave the stock undeducted:
- enabled: a receipt's delivery is validated even when it takes the location below zero; the bypass is logged and the location shows negative stock to correct;
- disabled: the rule applies to receipts as well, and their deliveries stay unvalidated until the stock is there.
The setting has no effect when Point of Sale is not installed.
-
Enable Storage Locations (section Warehouse) to see the location options. Open Inventory > Configuration > Locations and, on the internal locations where stock may go below zero (transit, work in progress), check Allow Negative Stock.
-
For products tracked by serial number, Check Serial No. (enabled by default) checks the serial number of the line. Uncheck it on a location to check the total of all serial numbers there; reservation then also ignores the serial number.
- Before enabling the rule on an existing database, review the negative positions (Inventory > Reporting > Locations, filter Negative Stock): record the missing receipts or transfers first, and use an inventory adjustment only for the real differences. Negative positions left in place block every outgoing move from them.
Work with transfers as usual. The check runs when a transfer is validated, on every line that takes stock out of an internal location, and on all lines together.
- Prepare a transfer. In this example the location Raft A holds 1 unit of the product, and the transfer picks it twice, 1 unit per line, in Detailed Operations. Each line alone would fit; together they need 2 units.
- Validate. The lines are added up per location, lot, package and owner, after converting the units of measure. When the location would go below zero, validation stops with an Invalid Operation message naming the product, the location and the quantity that would remain (here -1). Nothing is moved: lower the quantities, pick from another location or lot, or validate the missing receipt first.
- Check the stock positions. Inventory > Reporting > Locations shows the positions the check compares against: one row per product, location, lot or serial number, package and owner. The check uses On Hand, not Available: a line on one lot, package or owner cannot use the stock of another.
- Locations allowed to go negative. On a location with Allow Negative Stock, the same transfer is validated and the position stays negative. Incoming moves are never checked, only the source location of a move.
- Serial numbers. With Check Serial No. unchecked on the location, the stock is checked on the total of all serial numbers there: two lines on two serial numbers pass when the location holds two units. Note that a line on a serial number that is not in the location also passes when the total is enough; that serial number then goes to -1 and has to be corrected by an inventory adjustment.
- Bring a negative position back to zero. Once the cause is found and the missing documents are recorded, open Inventory > Operations > Physical Inventory, filter Negative Stock, enter the counted quantity (0 when the shelf is empty) and click Apply. An increase is an incoming move and is not blocked; a count that would take the stock below zero is blocked like any other outgoing move.
Not checked: products without Track Inventory, non-internal locations, and Point of Sale receipts while Allow negative stock from Point of Sale is enabled. Every Point of Sale bypass is written to the server log with the transfer, product, quantity and location.
Need help getting started?
Our 600+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module, or need it adapted to your processes? Write to us — the developers who build it will answer.
Terrabit support →More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 156 |
| Technical Name |
deltatech_stock_negative |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
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