Skip to content

CookiesWe use the cookies the site needs to work. Analytics and marketing only turn on with your permission. Privacy policy

My choices
What stays on

Your choice lasts 12 months. To change it, open “Cookies” in the footer.

IntData
IntData · https://intdata.com.br/en/metrics/stock-below-minimum · November 30, 2026

Stock below minimum

Which products are below minimum stock and how much should I buy of each?

Verified Metric version 1.1.0

What it is

Products with a reordering rule whose balance at the rule's location (and the locations inside it) is below the rule's minimum; and, among products without a rule, those that sold in the window and have coverage (stock ÷ average monthly outflow) below N months (1 by default). For each one: the balance, the minimum or the coverage, and the suggested purchase.

What it is not

  • It is not the list of out-of-stock products: a product at zero without sales or a rule needs no purchase.
  • It does not consider purchases already ordered and not received: the balance is what is in stock.
  • It is not Odoo's replenishment report: here products without a rule are also assessed, by sales.

Pitfalls this metric handles

The traps a hasty calculation falls into — and how this metric avoids each one.

Whole-company balance

The mistake
Comparing the rule's minimum with the product's balance in every location.
Why it happens
The rule belongs to one location: another store's balance does not supply this one.
How we handle it
Add up only the rule's location and the locations inside it.

Product without a rule

The mistake
Assessing only products with a reordering rule.
Why it happens
In most databases, most products have no rule: they vanish.
How we handle it
Without a rule, use coverage by real outflow (stock turnover by brand).

Archived rule

The mistake
Counting a disabled rule.
Why it happens
The customer switched the rule off; its minimum no longer applies.
How we handle it
Active rules only (Odoo's default in a search).

Negative stock

The mistake
Adding a negative balance as if it were a shortage to buy.
Why it happens
It is a missing stock deduction, not demand.
How we handle it
Count a negative balance as zero, as in stock turnover.

Where the number comes from

Audit trail

Odoo model
stock.warehouse.orderpoint + stock.quant + stock.move
Fields
stock.warehouse.orderpoint.product_min_qty, stock.warehouse.orderpoint.product_max_qty, stock.warehouse.orderpoint.location_id, stock.quant.quantity, stock.location.location_id
Why this path
The reordering rule is the minimum the customer set. Without it, the real outflow (done stock.move to the customer, the same as stock turnover) is the only honest yardstick.

How you can adjust it

ParameterWhat it doesOptions
Companies company ids, always explicit —
Minimum coverage (months) without a rule, products with coverage below N months come in —
Months to buy for without a rule, the suggested purchase covers N months of outflow —
Period the window of the average outflow {from, to}; without a period, the last 180 days —
Filters narrow down by products or categories (lists of ids) or codes (the codes the person gave — reference, variant, barcode, vendor code or name — matched by the engine) products, categories, and codes
Group by the breakdown: by origin (rule or coverage) origin
Sort by order of the products shortage, months of coverage, and name
Items listed how many products to list; the total always covers the whole set —

Validation

To be validated on a real database. The method comes from a script that already ran in a customer's operation, and the calculation passes the automated tests against the demo database. IntData has not yet checked it on a real database; until then, check the first result in Odoo using the path in the audit trail.

Date
October 25, 2026
Checked against
The demo database, rule by rule and against stock turnover by brand, and the test Odoo servers. To be validated on a real database.
Expected Odoo versions
14.0, 16.0, 17.0, 18.0, 19.0, 20.0
Note
Without the purchase module, the reordering rule still exists in inventory. Does not use read_group.

Need a variation of this metric, or another one that does not exist yet?