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/products-with-zero-cost · November 30, 2026

Products with zero cost

How many products have a zero cost in Odoo, and which are they?

Verified Metric version 1.2.0

What it is

Active products with a SKU that are sold or kept in stock whose cost (the “Cost” on the product form) is zero or blank, counted in each company: in Odoo the cost belongs to each company. For each one: the SKU, the name, the brand, the type, today's stock, the variant's sales in the last 365 days and the product's ABC class. Services and items without a SKU are counted separately.

What it is not

  • It is not the stock value: a product with zero cost may have real valuation in its cost layers.
  • It is not the cost of a single company: the same product may have a cost in one company and zero in another.
  • It does not include archived products.
  • It does not list services or items without a SKU: they are counted separately (the “include services and items without a SKU” option recounts with them).

Pitfalls this metric handles

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

Another company's cost

The mistake
Reading the cost of every company at once.
Why it happens
Odoo returns the active company's cost for every product: the other companies show the first one's cost.
How we handle it
One read per company, each one as the active company.

Services and archived products

The mistake
Counting every product with zero cost.
Why it happens
Freight, fees and archived products have zero cost on purpose and inflate the count.
How we handle it
Only active products; services stay off the list, counted separately; the criterion goes in the answer.

Truncated list

The mistake
Exporting only the rows the screen shows.
Why it happens
Whoever asked for the list to fix the product records fixes only part of it.
How we handle it
The answer keeps every row; the Excel file carries all of them.

Item without a SKU

The mistake
Listing demo leftovers, services and the generic marketplace item next to the SKUs.
Why it happens
There is no SKU to fix, and they fill the list of whoever is fixing the records.
How we handle it
Counted separately, in a collapsed list; the option recounts with them.

Product sales on every variant

The mistake
Repeating the product's sales (variants added up) on each variant's row.
Why it happens
It looks as if each variant sold the whole product.
How we handle it
The row shows the variant's sales; the ABC class is the product's, and the header says so.

Where the number comes from

Audit trail

Odoo model
product.product + stock.quant + account.move.line
Fields
product.product.standard_price, product.product.default_code, product.product.active, product.product.sale_ok, product.product.is_storable | detailed_type | type, stock.quant.quantity, product.product.<campo de marca confirmado>
Why this path
standard_price is the “Cost” field on the product form, the one margin and stock adjustments use. It is read with each company as the active one, because Odoo keeps one cost per company.

How you can adjust it

ParameterWhat it doesOptions
Companies company ids, always explicit —
Which products count which products count: those sold or kept in stock, or every active product those sold or kept in stock and all active ones
Period the sales window {from, to}; without a period, the last 365 days —
Filters filter by product categories (list of ids, including the ones inside) categories
Group by the breakdown: by ABC class ABC class
Sort by order of the products sales, stock, SKU, and name
Items listed how many products to show on screen; the Excel file carries all of them —
Include services and items without a SKU include services and items without a SKU in the count (by default they are counted separately) no and yes

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
November 9, 2026
Checked against
Demo database, product by product, with zero cost in both companies and in only one of them. To be validated on a real database.
Expected Odoo versions
14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0
Note
The storable field changes with the version: type up to 14, detailed_type from 15 to 17, is_storable from 18 on. Without Inventory, the balance is zero. It does not use read_group.

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