Overdue accounts payable
How much is overdue and still open, for how long, per company?
Verified Metric version 1.1.0
What it is
Sum of the open payable INSTALLMENTS whose due date has passed. The unit is the installment, as in the coming-due metric: a 3-installment bill that is half overdue counts only the overdue installments. Days overdue count from the installment due date to today.
What it is not
- It is not the list of bills with a past due date — account.move.invoice_date_due holds the date of the LAST installment: a 10-installment bill with the 1st one overdue would not show.
- It does not include installments already reconciled (paid and settled).
- It does not include draft documents; overdue drafts go to an alert.
- It is not confirmed debt: an open overdue installment can also be a settlement never recorded.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Document due date
- The mistake
- Filtering bills by account.move.invoice_date_due < today.
- Why it happens
- invoice_date_due is the date of the last installment. Odoo 19.3 Ask AI answered 'you have no payables' by looking at that field.
- How we handle it
- Query account.move.line by date_maturity.
- Evidence from a real database
- Real database, Oct 24, 2026: the coming-due metric, by installment, matched Odoo to the cent; Ask AI, by document, found nothing.
Sign of the amount
- The mistake
- amount_residual comes NEGATIVE on the payable account (it is a credit).
- Why it happens
- Odoo accounting convention: liabilities carry a credit balance.
- How we handle it
- Flip the sign before showing it to the user.
Overdue but already paid
- The mistake
- An installment with a registered, unreconciled payment (payment_state = 'in_payment') stays open and shows as overdue.
- Why it happens
- Without automatic settlement, a payment made looks like debt.
- How we handle it
- Keep it in the total and list the largest ones in the alert, with the payment date.
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 payable 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 vendors or journals (lists of ids) | vendors and journals |
| Group by | breakdown of the total inside each company | company, vendor, overdue bracket, and month |
| Sort by | order of the listed installments | days overdue, amount, and vendor |
| 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 24, 2026
- Checked against
- The test trap database, installment by installment, and the demo database. Same domain as the coming-due metric, 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,saas~19.2+e,saas~19.3+e- Note
- Does not use read_group. Same installment base as the coming-due metric.
Need a variation of this metric, or another one that does not exist yet?