Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 12 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis 0 migration notes 4 models 3 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
mrp_subcontracting_skip_no_negative

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
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

New fields (1)
  • allow_negative_stock Boolean
    help="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."
Public methods (0)

No public methods.

New fields (1)
  • allow_negative_stock Boolean
    help='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.'
Public methods (0)

No public methods.

New fields (1)
  • allow_negative_stock Boolean
    help='Allow negative stock levels for the stockable products attached to this location.'
Public methods (0)

No public methods.

New fields (0)

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…