ABC revenue curve
Which products, customers or categories make up most of my revenue?
Verified Metric version 1.2.0
What it is
Revenue before taxes from posted customer invoices (sales minus returns), by product, customer or category, from largest to smallest. By product, variants add up into the product (the template). Class A: the items that bring the running total up to 80% of revenue; B: up to 95%; C: the rest; no sales: a product that did not sell in the period. Lines that are not products (freight, fees, a marketplace's generic product) stay out of the curve and show in an alert.
What it is not
- It is not a quantity curve: a cheap item that sells a lot can be C.
- It is not a margin curve: high revenue does not mean high profit.
- It is not point-of-sale revenue without an invoice: the curve uses posted invoices.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Non-product at the top of the curve
- The mistake
- Ranking every invoice line that has a product_id.
- Why it happens
- Freight, packaging fees and the generic product a marketplace uses to post sales show up as 'products'. The generic one adds up sales of dozens of real products and becomes item no. 1.
- How we handle it
- Leave service-type products and lines without a product out of the curve, and show in an alert how many lines and how much value were left out.
- Evidence from a real database
- 'ABC curve — Sales' artifact of Jul 17, 2026, in the collection: item no. 1 was the marketplace sale placeholder, and carrier freight was counted as a product.
Returns left out
- The mistake
- Adding price_subtotal from sales invoices only.
- Why it happens
- A heavily returned product looks more important than it is.
- How we handle it
- Include out_refund and add −balance, which has the right sign.
Tax or installment lines added
- The mistake
- Adding every line of the journal entry.
- Why it happens
- The entry has tax and installment lines; adding them counts the sale twice.
- How we handle it
- Filter display_type = product.
Where the number comes from
Audit trail
- Odoo model
account.move.line- Fields
account.move.line.balance,account.move.line.product_id,account.move.line.partner_id,account.move.line.display_type,account.move.line.parent_state,account.move.line.move_id.move_type,account.move.line.date,product.product.type,product.product.categ_id,product.product.product_tmpl_id- Why this path
- The invoice's product line has revenue before taxes item by item, with the accounting sign: sales negative, returns positive. Adding −balance already nets out returns.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Period | {from, to} by invoice date; without a period, the last `dias` days | — |
| Window in days | the window, in days, when there is no period | — |
| Filters | narrow down by categories or customers (lists of ids; a category includes its children) | categories and customers |
| Group by | what goes into the curve | product, customer, and category |
| Sort by | order of the listed items | amount and name |
| Items listed | how many items to list per company; classes and total cover 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 24, 2026
- Checked against
- Method from the Jul 17, 2026 ABC curve artifact in the collection, tested against the demo database. To be validated on a real database.
- Expected Odoo versions
14.0,16.0,17.0,18.0,19.0,20.0,saas~19.2+e,saas~19.3+e- Note
- Does not use read_group.
Need a variation of this metric, or another one that does not exist yet?