Skip to content

CookiesWe use the cookies the site needs to work. Analytics and marketing only turn on with your permission. Privacy policy

My choices
What stays on

Your choice lasts 12 months. To change it, open “Cookies” in the footer.

IntData
IntData · https://intdata.com.br/en/metrics/accounts-payable-due · November 30, 2026

Accounts payable coming due

How much do I have to pay in the next N days, per company?

Verified Metric version 1.1.0

What it is

Sum of the open payable INSTALLMENTS whose due date falls inside the window. The counting unit is the installment, not the document: a single vendor bill split into 3 payments creates 3 installments with 3 due dates.

What it is not

  • It is not the sum of vendor bills due inside the window — that path uses account.move.invoice_date_due, which stores the date of the LAST installment and hides the ones in between.
  • It does not include installments already reconciled (paid and settled).
  • It does not include draft documents — only posted ones.

Pitfalls this metric handles

The traps a hasty calculation falls into — and how this metric avoids each one.

Split installments

The mistake
Filtering by account.move.invoice_date_due instead of the installments.
Why it happens
invoice_date_due holds the final date of the payment terms. On a 30/60/90 bill it points to day 90, and the 30 and 60 installments fall outside any short window.
How we handle it
Query account.move.line by date_maturity.
Evidence from a real database
Reference database, window Oct 5 to Nov 4, 2026: the bill path finds 3 documents; the installment path finds 15 installments in 11 documents. 9 of the 11 documents would disappear, and with them most of the amount due.

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.

Paid but not settled

The mistake
payment_state = 'in_payment' means a payment was registered but not reconciled yet. The installment is still open and stays in the total.
Why it happens
Without automatic settlement in the Brazilian localization, this piles up and becomes a phantom liability.
How we handle it
Keep it in the metric (it really is open), but report the volume in 'alerts' so the user can investigate.

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.

What it warns you about without being asked

Alerts from this metric on the reference database, on Oct 5, 2026:

Company 1: 24 installments already overdue and still open, totaling $68,111.38. A high volume usually means settlements that were never recorded, not real debt.

Company 2: 318 installments already overdue and still open, totaling $146,704.18. A high volume usually means settlements that were never recorded, not real debt.

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 of a deferred payment live as lines on the payable account of the journal entry, one per due date. It is the only source that sees the split.

How you can adjust it

ParameterWhat it doesOptions
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 vendors or journals (lists of ids) vendors and journals
Group by breakdown of the total inside each company company, vendor, due date, week, and month
Sort by order of the listed installments due date, amount, and vendor
Items listed how many installments to list per company; the total always covers the whole set —

Validation

Date
October 5, 2026
Checked against
Manual query on account.move.line, installment by installment.
What Odoo's native AI answered
Odoo 19.3 Ask AI answered 'no payables were found' for the same window. The correct answer had 15 installments in 11 bills.
Validated 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 (removed from RPC since 19.0).

Calculation validated on version 1.0.0. Version 1.1.0 keeps the same calculation and adds period, filters and grouping; it passed the automated tests and will be revalidated on the real database.

Homologated on Odoo versions 14 and 16 to 20.

Need a variation of this metric, or another one that does not exist yet?