Financial ratios from Odoo data, with formulas
Financial ratios turn two statements into a short answer: is the company liquid, profitable, efficient and safely financed? Odoo holds every figure you need, but it does not lay all the ratios out in one place, so most people export the balance sheet and the profit and loss to a spreadsheet and rebuild them for each client. This guide gives the formulas, works through an example, shows how to calculate DSO and the other working-capital days, and points out where Odoo data needs care before a ratio means anything.
What does Odoo already give you?
Odoo's reporting documentation (18.0) describes an Executive Summary report with two groups of indicators. Under performance: gross profit margin, net profit margin and return on investment per year. Under position: average debtors days, average creditors days, a short-term cash forecast and current assets to liabilities. The Balance Sheet and Profit and Loss reports export to PDF or XLSX and have a Comparison menu for other periods.
That is a useful start. What it does not give you is the rest of the usual ratio set:
| Ratio | In the Executive Summary | What it needs from you |
|---|---|---|
| Current ratio | yes (current assets to liabilities) | nothing |
| Quick ratio | no | receivables kept apart from prepayments and VAT |
| Gross and net margin | yes | cost of sales recorded for what was sold |
| Return on equity | no | equity averaged over the period |
| DSO and DPO | as debtors and creditors days | a decision on VAT and cash sales |
| DIO and cash conversion cycle | no | inventory and cost of sales by period |
| Debt to equity, interest coverage | no | loans and finance cost as separate lines |
How should you group accounts before calculating ratios?
A ratio is only as good as the lines it adds up. Odoo classifies every account by type, and the field changed over time. In the Odoo source, version 16 and later use one field, account_type, with values such as asset_receivable, asset_cash, asset_current, liability_payable, liability_current, equity, income and expense_direct_cost. Versions 12 to 15 use an account type record (user_type_id).
The types are a good start, but they do not answer every question a ratio asks:
- Inventory sits among current assets with prepayments and VAT receivable, so days of inventory cannot be computed from types alone.
- Interest-bearing debt is not a type. Loans sit in current or non-current liabilities next to accruals and provisions.
- Finance cost is an ordinary expense, mixed with other expenses.
The practical answer is to group accounts by code prefix, starting from the types and adjusting once per chart of accounts: for example « 13 » for inventory or « 25 » for bank loans, whatever the client's chart uses. Odoo's own account groups already work this way: the chart of accounts documentation says groups are assigned automatically from the account code. Two more rules apply to every ratio: posted entries only, and each company in its own currency.
The example company
All figures below are an example with round numbers, for twelve months (365 days). Assume all sales are on credit and ignore tax to keep the arithmetic visible.
| Profit and loss (12 months) | Amount |
|---|---|
| Revenue | 1,460,000 |
| Cost of sales | 1,095,000 |
| Gross profit | 365,000 |
| Operating expenses | 215,000 |
| Operating profit | 150,000 |
| Finance cost | 50,000 |
| Net profit | 100,000 |
| Balance sheet | Opening | Closing |
|---|---|---|
| Cash and bank | — | 100,000 |
| Receivables | 160,000 | 200,000 |
| Inventory | 160,000 | 200,000 |
| Current assets | — | 500,000 |
| Payables | 120,000 | 150,000 |
| Short-term loan | — | 100,000 |
| Current liabilities | — | 250,000 |
| Long-term loan | — | 200,000 |
| Equity | 500,000 | 600,000 |
How do you measure liquidity?
- Current ratio = current assets ÷ current liabilities = 500,000 ÷ 250,000 = 2.0.
- Quick ratio = (cash and bank + receivables) ÷ current liabilities = 300,000 ÷ 250,000 = 1.2. Prepayments and VAT receivable stay out: they do not turn into cash to pay a supplier.
- Cash ratio = cash and bank ÷ current liabilities = 100,000 ÷ 250,000 = 0.4.
Liquidity ratios use balances at the period end. Read them as a trend over several month-ends rather than a single figure; one large supplier payment the day before month-end changes all three.
How do you measure profitability?
- Gross margin = gross profit ÷ revenue = 365,000 ÷ 1,460,000 = 25.0%.
- Operating margin = operating profit ÷ revenue = 150,000 ÷ 1,460,000 = 10.3%.
- Net margin = net profit ÷ revenue = 100,000 ÷ 1,460,000 = 6.8%.
- Return on equity = net profit ÷ average equity = 100,000 ÷ 550,000 = 18.2%.
- Return on assets = net profit ÷ average total assets, built the same way.
Returns compare a flow (a year of profit) with a stock (a balance). Using the closing balance alone flatters or punishes the ratio depending on what happened during the year, which is why the definition uses an average. Gross margin depends on cost of sales being recorded: if a client sells products whose cost is missing in Odoo, the margin is overstated, so always check how much of revenue has a cost behind it.
How do you calculate DSO, DIO, DPO and the cash conversion cycle?
These ratios express working capital in days. Each divides an average balance by the flow that moves it, then multiplies by the number of days in the period.
- DSO (days sales outstanding) = average receivables ÷ credit revenue × days. Average receivables = (160,000 + 200,000) ÷ 2 = 180,000. DSO = 180,000 ÷ 1,460,000 × 365 = 45 days.
- DIO (days inventory outstanding) = average inventory ÷ cost of sales × days = 180,000 ÷ 1,095,000 × 365 = 60 days.
- DPO (days payables outstanding) = average payables ÷ cost of sales × days = 135,000 ÷ 1,095,000 × 365 = 45 days.
- Cash conversion cycle = DSO + DIO − DPO = 45 + 60 − 45 = 60 days.
Sixty days is the time between paying suppliers and collecting from customers. Every day removed from the cycle frees cash equal to roughly one day of cost or sales.
Three traps when you calculate DSO from Odoo:
- Tax in receivables. Receivable balances include VAT; revenue does not. With VAT at 15%, for example, DSO comes out about 15% higher than the same calculation on amounts before tax. Pick one convention and keep it.
- Cash sales. Point-of-sale and cash sales never create receivables. Dividing by total revenue understates DSO for a business that mixes cash and credit.
- Averages. Opening plus closing divided by two is fine for a stable business. For a seasonal one, average the twelve month-ends instead.
Receivables also need to be right before DSO is: unreconciled payments and imported opening balances distort them. The aged receivables guide lists the checks.
How do you measure leverage and coverage?
- Debt to equity = interest-bearing debt ÷ equity = (100,000 + 200,000) ÷ 600,000 = 0.5.
- Debt ratio = total liabilities ÷ total assets.
- Interest coverage = operating profit ÷ finance cost = 150,000 ÷ 50,000 = 3.0 times.
When a denominator is zero or negative the ratio has no meaning. A company with negative equity has no debt-to-equity ratio; a company with no finance cost has no interest coverage. Show « n/a » with the reason instead of a misleading number.
How do you compare ratios across several clients?
Ratios are the one figure that compares across companies of different sizes and currencies: a 10% net margin in SAR and a 6% net margin in EGP can sit side by side, while their revenues cannot be added. Two conditions make the comparison fair:
- The same grouping for every client. If inventory is « 13 » in one chart and « 14 » in another, map both to the same group once, and keep the mapping under review when accounts are added.
- The same period and the same averages. Month-end balances for the same twelve months, posted entries only.
If you report on clients in separate Odoo databases, the guide to consolidating several Odoo databases explains why ratios, not sums, are the safe comparison across currencies.
Where do the ratios sit in Reports & KPIs?
In Reports & KPIs, ratios are part of the financial analysis section, available today with cost analysis, branches, the explorer, the KPI library and partner statements. The key ratios report is computed from totals read from Odoo by period and account group and stored, so figures tie to the ledger and any input can be followed down to the rows in Odoo.

Checklist before you send ratios to a client
- Group accounts by code prefix so inventory, loans and finance cost are separate lines.
- Use posted entries only and each company in its own currency.
- Use average balances for returns and for the working-capital days.
- Decide how VAT and cash sales are treated in DSO, and write the decision down.
- Show « n/a » with a reason for zero or negative denominators.
Questions
Does Odoo calculate financial ratios itself?
Odoo's Executive Summary report lists a few: gross and net profit margin, return on investment, average debtors and creditors days, a short-term cash forecast and current assets to liabilities. Quick ratio, inventory days, the cash conversion cycle and leverage need your own account grouping.
Should DSO use receivables with or without VAT?
Receivable balances include VAT, revenue does not. Either remove VAT from receivables or accept a higher DSO, and keep the same convention for every month and every client.
What should a ratio show when the denominator is zero or negative?
Nothing numeric. A company with negative equity has no meaningful debt-to-equity ratio; show « n/a » with the reason instead.
Sources
AI CFO Hub — Your books’ figures, read by AI.
