Projected cash flow
What does my cash look like over the next weeks, adding what comes in and what goes out?
Verified Metric version 1.1.0
What it is
For each of the next N weeks (8 by default), starting today: the customer installments due in the week, minus the vendor installments due in the week, and the running balance from the opening balance given (zero by default). Only open installments of posted documents. The headline number is the balance at the end of the last week.
What it is not
- It is not the bank balance: the balance starts at the value given (zero if none is given).
- It does not include what is already overdue and still open, on either side: that goes to the alerts, because there is no date for it to come in or go out.
- It does not include expenses without a posted document (payroll, taxes to be assessed, credit card): only what Odoo holds as an installment.
- It is not a sales forecast: a sale not yet invoiced does not count.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Document due date
- The mistake
- Projecting by invoice (account.move.invoice_date_due).
- Why it happens
- It is the date of the last installment: a 10-installment purchase would land in one week.
- How we handle it
- Project by installment (account.move.line.date_maturity).
Overdue and open
- The mistake
- Adding the overdue open amounts to the first week.
- Why it happens
- A late payer has no date to pay, and an overdue payable does not leave cash by itself: both would invent a due date.
- How we handle it
- Keep them out of the weeks and show each side's overdue amount in an alert.
Sign
- The mistake
- amount_residual is negative on payables and positive on receivables.
- Why it happens
- Odoo accounting convention: liabilities carry credit, assets carry debit.
- How we handle it
- Payables with the sign flipped; the week balance is receivable − payable.
Multi-company
- The mistake
- Adding the companies' cash together.
- Why it happens
- Each company has its own cash; adding them hides the one that goes negative.
- How we handle it
- Project and warn per company.
Where the number comes from
Audit trail
- Odoo model
account.move.line- Fields
date_maturity,amount_residual,account_id.account_type | internal_type,reconciled,parent_state,company_id- Why this path
- Both ends of future cash are installments: receivables on the customer account and payables on the vendor account, each with its own due date.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Weeks | how many weeks to project from today | — |
| Opening balance | opening balance, the same for each company | — |
| Period | does not apply: the window is the weeks from today | — |
| Filters | narrow down by journals (list of ids) | journals |
| Group by | the projection row | week |
| Sort by | row order | period |
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, week by week, against the payables and receivables metrics over the same window. To be validated on a real database.
- Expected Odoo versions
14.0,16.0,17.0,18.0,19.0,20.0- Note
- Does not use read_group. The same installments as the payables and receivables metrics.
Need a variation of this metric, or another one that does not exist yet?