Files
odoo-cooltools/dlv_account_reconciliation_rest_amount/README.md
T

1.7 KiB

dlv_account_reconciliation_rest_amount

Overview

dlv_account_reconciliation_rest_amount extends the standard bank reconciliation screen (Accounting → Reconciliation) so the still-open ("rest") amount of a line is shown in parentheses next to its total.

On the reconciliation screen, when a proposed line (the bank movement itself, or an added invoice/bill) is only partially used to close the statement line, Odoo shows the full amount struck through and the partial amount used above it — but not what remains unmatched on that line. This addon adds that missing number, e.g.:

€ 1.899,97
€ 4.486,35   (€ 2.586,38)

so the user immediately sees that €2.586,38 of that invoice is still outstanding, without having to search for it elsewhere.

How it works

  • static/src/js/reconciliation_rest_amount.js patches account.ReconciliationRenderer's ManualLineRenderer.update(). Before every render, it walks state.reconciliation_proposition and, for any line where partial_amount differs from amount, computes and formats the difference as line.rest_amount_str.
  • static/src/xml/reconciliation_rest_amount.xml inherits the shared reconciliation.line.mv_line.amount template (from account_accountant) via xpath and prints line.rest_amount_str between parentheses, right after the existing amount.

Because both the bank movement (liquidity line) and any added invoice/bill proposition are rendered through the same loop and template, this single patch covers both cases.

Dependencies

  • account_accountant

Installation

Standard addon install/update. No configuration or data is added; the change is purely visual on the existing reconciliation widget.