#290911·odoo

[19.0] account: tax_base_amount on cash basis entries retains full invoice base upon partial reconciliation

Author: JulioSernaCreated Sep 29, 2026Updated Sep 29, 2026

Odoo Version

  • 18.0
  • 19.0
  • 20.0
  • Other (specify)

(Reproducible on Odoo 19.0+e, and technically present in 18.0/17.0)

Steps to Reproduce

  1. Configure a tax with cash basis enabled (e.g., IEPS 8% or VAT), having a transition account (e.g., 209.02.01 Tax Not Collected) and a cash basis tax account (e.g., 208.02.01 Tax Collected).
  2. Create and post a Customer Invoice with 1 product line:
    • Product: Any product
    • Quantity: 10.0
    • Unit Price: 1,000.00
    • Tax: 8% ($800.00)
    • Total Invoice: $10,800.00 (Base: -$10,000.00)
  3. Create and post a Credit Note (out_refund) for 20% of the invoice:
    • Quantity: 2.0
    • Unit Price: 1,000.00
    • Tax: 8% ($160.00)
    • Total Credit Note: $2,160.00 (Base: +$2,000.00)
  4. Reconcile the Credit Note receivable line with the Invoice receivable line.
  5. Inspect the generated Cash Basis entries in the Cash Basis / Efectivamente Pagado journal:
    • Note the entry generated on the invoice side (CBMX/.../00001):
      • The tax line (account.move.line on the Collected Tax account) has Debit 0.00 and Credit $160.00 (correctly prorated to 20%).
      • However, the tax_base_amount field is set to -$10,000.00 (the full base of the original invoice).
      • Implicit tax rate: $160.00 / $10,000.00 = 1.60% instead of 8.00%.
    • The entry generated on the Credit Note side (CBMX/.../00002):
      • Has Debit $160.00 and tax_base_amount = +$2,000.00 (rate: 8.00%).
  6. Go to Accounting > Reporting > Tax Report, filter by the period of the reconciliation.
  7. Click on the tax line / cell and click Audit / View Journal Items (account.view_move_line_tax_audit_tree):
    • Notice the "Base Amount" (tax_base_amount) column.
    • The invoice side shows -$10,000.00 while the refund side shows +$2,000.00.
    • The total sum at the bottom of the audit view shows -$8,000.00 while the net tax is $0.00.

Current Behaviour

On the Cash Basis journal entry for the invoice, Odoo prorates the debit/credit amounts of the tax line correctly, but directly copies tax_base_amount from the invoice tax line without multiplying by the reconciliation fraction (percentage = reconciled_amount / invoice_total).

As a consequence:

  1. tax_base_amount on partial cash basis entries retains the full invoice base (-$10,000.00), causing the implicit tax rate to collapse (in this case to 1.60% instead of 8.00%).
  2. In the Tax Audit view (account.view_move_line_tax_audit_tree) and any audit spreadsheet relying on tax_base_amount, the net base is inflated to -$8,000.00 even though the net tax is $0.00.
  3. In real-world accounting where an invoice is settled across multiple partial payments or credit notes, tax_base_amount is duplicated on every single partial cash basis entry, heavily distorting tax audit reports and causing accountants to believe the system has corrupt tax entries.

Expected Behaviour

The tax_base_amount on the cash basis tax line should be prorated using the same ratio as the tax amount:

tax_base_amount (cash_basis) = tax_base_amount (invoice) * (reconciled_amount / invoice_total)

In this example:

  • Invoice Cash Basis line tax_base_amount should be -$2,000.00 ($160.00 / $2,000.00 = 8.00%).
  • Credit Note Cash Basis line tax_base_amount is +$2,000.00 ($160.00 / $2,000.00 = 8.00%).
  • Net Base in the Tax Audit view should be $0.00 (-$2,000 + $2,000), completely matching the net tax of $0.00.

Evidence / Screenshots

1. Tax Report for the period (Net Tax = $0.00):

Tax Report Oct 2026

2. Tax Audit View (account.view_move_line_tax_audit_tree):

Notice the -$8,000.00 net Base Amount highlighted in red, despite the net tax being $0.00: Tax Audit View