odoo/odoo#264379

Created by Ester Andreetto (esand)
Merged at feb1a4e378b22713037c721df5ae93b0d2dce111

Statuses:

label
odoo-dev:17.0-opw-6172791-l10n_it_tax_report_VF25_formula-esand
head
360687a8a17aa1af84c8313475bd97ba4e4f679f
merged
2 weeks ago by Accounting, Thomas Becquevort (thbe)
odoo/odoo
17.0 #264379
18.0 #264764
saas-18.2 #264784
saas-18.3 #264809
saas-18.4 #264829
19.0 #264847
saas-19.1 #264890
saas-19.2 #264902
saas-19.3 #264938
master #264980

[FIX] l10n_it: correct VF25 formula in italian annual tax report

Issue before this commit:

In the Italian Annual VAT Report, the balance (base amount) for line VF25 displays incorrect values. Instead of computing the sum of the taxable bases for the passive operations, the report erroneously mixes tax amounts into the balance column.

Steps to reproduce the issue:

  1. Download Accounting and l10n_it
  2. Go to Tax Report and visualize the Annual Tax Report (IT)
  3. Go to VF VAT Report
  4. See the VF25 is mixing taxes and balances

Cause of the issue:

The root cause lies in the aggregation_formula definition for the tax_annual_report_line_VF25 record. The formula was incorrectly configured to aggregate the .tax expressions for lines VF1 to VF13 (VF1.tax + VF2.tax + ...) instead of their respective .balance expressions, while correctly using .balance for the remaining lines (VF17 to VF24).
https://github.com/odoo/odoo/blob/878c08cf522a3278b4e6ff5f3d18444989e9998d/addons/l10n_it/data/tax_report/annual_report_sections/vf.xml#L286-L299

It's just a typo in this commit: #164064/changes/f292ba119d6376dbfb3c1fac4960c9c56a74d938

Reason to introduce the fix:

From documentation https://www.agenziaentrate.gov.it/portale/documents/20143/9602686/IVA_ANNUALE_2026_istr.pdf/2a42fb92-1b76-229a-d0f5-06069d79b514?t=1768504755711 :

> Rigo VF25, colonna 1, va indicato il totale degli imponibili determinato sommando gli importi riportati ai righi da VF1 a VF23, colonna 1, diminuito dell’importo di cui al rigo VF24. In colonna 2 va indicato il totale delle imposte determinato sommando gli importi delle colonne 2 dei righi da VF1 a VF13.

opw-6172791


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr