Stock Disallow Negative
stock_no_negative · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by15/251 module depends on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Description
By default, Odoo allows negative stock. The advantage of negative stock is that, if some stock levels are wrong in the ERP, you will not be blocked when validating the picking for a customer... so you will still be able to ship the products on time (it's an example !). The problem is that, after you forced the stock level to negative, you are supposed to fix the stock level later via an inventory ; but this action is often forgotten by users, so you end up with negative stock levels in your ERP and it can stay like this forever (or at least until the next full inventory).
If you disallow negative stock in Odoo with this module, you will be blocked when trying to validate a stock operation that will set the stock level of a product and/or location as negative. So you will have to fix the wrong stock level of that product without delay, in order to validate the stock operation in Odoo...you can't forget it anymore !
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_category_form_view_inherit |
stock_no_negative.product.category.form | product.category | form | Inherits stock.product_category_form_view_inherit |
view_location_form |
stock.location.form.allow_negative_stock | stock.location | form | Inherits stock.view_location_form |
view_template_property_form |
stock_no_negative.product.template.form | product.template | form | Inherits stock.view_template_property_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
allow_negative_stockBooleanhelp="Allow negative stock levels for the stockable products attached to this category. The options doesn't apply to products attached to sub-categories of this category."
No public methods.
-
allow_negative_stockBooleanhelp='If this option is not active on this product nor on its product category and that this product is a stockable product, then the validation of the related stock moves will be blocked if the stock level becomes negative with the stock move.'
No public methods.
-
allow_negative_stockBooleanhelp='Allow negative stock levels for the stockable products attached to this location.'
No public methods.
No new fields.
Public methods (1)-
check_negative_qty(self)@api.constrains('product_id', 'quantity')
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…