[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
- Configure a tax with cash basis enabled (e.g.,
IEPS 8%orVAT), 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). - 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)
- 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)
- Quantity:
- Reconcile the Credit Note receivable line with the Invoice receivable line.
- 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.lineon the Collected Tax account) has Debit0.00and Credit$160.00(correctly prorated to 20%). - However, the
tax_base_amountfield is set to-$10,000.00(the full base of the original invoice). - Implicit tax rate:
$160.00 / $10,000.00 = 1.60%instead of8.00%.
- The tax line (
- The entry generated on the Credit Note side (
CBMX/.../00002):- Has Debit
$160.00andtax_base_amount=+$2,000.00(rate:8.00%).
- Has Debit
- Note the entry generated on the invoice side (
- Go to Accounting > Reporting > Tax Report, filter by the period of the reconciliation.
- 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.00while the refund side shows+$2,000.00. - The total sum at the bottom of the audit view shows
-$8,000.00while the net tax is$0.00.
- Notice the "Base Amount" (
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:
tax_base_amounton partial cash basis entries retains the full invoice base (-$10,000.00), causing the implicit tax rate to collapse (in this case to1.60%instead of8.00%).- In the Tax Audit view (
account.view_move_line_tax_audit_tree) and any audit spreadsheet relying ontax_base_amount, the net base is inflated to-$8,000.00even though the net tax is$0.00. - In real-world accounting where an invoice is settled across multiple partial payments or credit notes,
tax_base_amountis 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_amountshould be-$2,000.00($160.00 / $2,000.00 = 8.00%). - Credit Note Cash Basis line
tax_base_amountis+$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):

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:

Source: odoo/odoo