Overdue accounts receivable
How much do customers owe me past due, for how long, per company?
Verified Metric version 1.1.0
What it is
Sum of the open customer INSTALLMENTS whose due date has passed. The unit is the installment: a sale in 3 installments with only the 1st overdue counts only the 1st. Days overdue count from the installment due date to today.
What it is not
- It is not the list of invoices with a past due date — account.move.invoice_date_due holds the date of the LAST installment: a 10-installment sale with the 1st one overdue would not show.
- It does not include installments already reconciled (received and settled), nor draft invoices.
- It is not confirmed default: an open overdue installment can also be a registered, unreconciled receipt (it goes to an alert).
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 < today.
- Why it happens
- invoice_date_due is the date of the last installment: an installment sale disappears until the last one is due.
- How we handle it
- Query account.move.line by date_maturity.
Received but not reconciled
- The mistake
- An installment with a registered, unreconciled receipt (payment_state = 'in_payment') stays open and shows as late.
- Why it happens
- The customer paid; the settlement is missing. Chasing that customer is embarrassing.
- How we handle it
- Keep it in the total and list the largest ones in the alert, to check before chasing.
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 an overdue installment in the middle of the terms.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Overdue for more than (days) | only installments more than N days overdue | — |
| Overdue for less than (days) | only installments less than N days overdue | — |
| Period | due-date window {from, to}; when given, replaces the days overdue | — |
| Filters | narrow down by customers or journals (lists of ids) | customers and journals |
| Group by | breakdown of the total inside each company | company, customer, overdue bracket, and month |
| Sort by | order of the listed installments | days overdue, 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 overdue payables. 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 receivables coming due.
Need a variation of this metric, or another one that does not exist yet?