Accounts receivable coming due
How much will customers pay me in the next N days, per company?
Verified Metric version 1.1.0
What it is
Sum of the open customer INSTALLMENTS whose due date falls inside the window. The unit is the installment, not the invoice: a sale in 3 installments creates 3 installments with 3 due dates. Only posted documents count; the amount is what is still open on the installment.
What it is not
- It is not the sum of customer invoices due inside the window — account.move.invoice_date_due holds the date of the LAST installment and hides the ones in between.
- It is not the period's revenue: it is what is still to come in, by due date.
- It does not include installments already reconciled (received and settled), nor draft invoices; a draft with an installment in the window goes to an alert.
- It is not guaranteed cash: an open installment can be a receipt that was never settled.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Document due date
- The mistake
- Filtering invoices by account.move.invoice_date_due inside the window.
- Why it happens
- invoice_date_due is the date of the last installment: the ones in between vanish.
- How we handle it
- Query account.move.line by date_maturity.
- Evidence from a real database
- The same trap as on accounts payable, checked on a real database on Oct 24, 2026: by document, 3 bills; by installment, 15 installments in 11 bills.
Received but not reconciled
- The mistake
- An invoice with a registered receipt not yet reconciled with the bank (payment_state = 'in_payment') keeps its installment open.
- Why it happens
- Without reconciliation, money already in shows as receivable.
- How we handle it
- Keep it in the total (it is what Odoo says) and list the largest ones in an alert.
Draft invoice
- The mistake
- A draft customer invoice already has an installment with a due date.
- Why it happens
- A draft is not a receivable: it can change or be cancelled.
- How we handle it
- Leave it out of the total and warn how much is in draft inside the window.
Multi-company
- The mistake
- Answering only for the session's active company.
- Why it happens
- The Odoo context filters by allowed_company_ids.
- How we handle it
- Declare the companies explicitly and always split the total by 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,move_id,partner_id- Why this path
- The installments live as lines on the receivable account of the journal entry, one per due date. It is the only source that sees each installment with what is left of it.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Period | due-date window {from, to} or relative (this_week, next_week, this_month, next_month); when given, replaces 'days' | — |
| Window in days | window size in days from today | — |
| Filters | narrow down by customers or journals (lists of ids) | customers and journals |
| Group by | breakdown of the total inside each company | company, customer, due date, week, and month |
| Sort by | order of the listed installments | due date, amount, and customer |
| Items listed | how many installments to list per company; 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, installment by installment, and the test Odoo servers. Same domain as accounts payable, validated on a real database. 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. Same installment base as accounts payable, on the customer side.
Need a variation of this metric, or another one that does not exist yet?