Skip to content

[19.0][MIG] l10n_it_edi_extension: Migration to 19.0#5083

Open
Borruso wants to merge 55 commits into
OCA:19.0from
Borruso:19.0-mig-l10n_it_edi_extension
Open

[19.0][MIG] l10n_it_edi_extension: Migration to 19.0#5083
Borruso wants to merge 55 commits into
OCA:19.0from
Borruso:19.0-mig-l10n_it_edi_extension

Conversation

@Borruso

@Borruso Borruso commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch from 0c18978 to 2077472 Compare February 6, 2026 13:10
@tafaRU

tafaRU commented Feb 6, 2026

Copy link
Copy Markdown
Member

/ocabot migration l10n_it_edi_extension

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Feb 6, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 6, 2026
30 tasks
@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch 4 times, most recently from aaf6829 to 9ea8d34 Compare February 12, 2026 08:04
@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch 2 times, most recently from 0a1dce5 to 2d708ee Compare February 15, 2026 12:18
@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch from 2d708ee to d61776e Compare February 22, 2026 11:21
@Borruso

Borruso commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

@monen17 quando hai tempo puoi controllare questo cherry-pick (ccbc41a) la gestione di visualizzazione alla 19.0 è cambiata fammi sapere

@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch from a90c167 to fc012e1 Compare March 15, 2026 11:05
@francesco-ooops

Copy link
Copy Markdown
Contributor

@Borruso puoi includere #5025 ?

@Borruso

Borruso commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

@Borruso puoi includere #5025 ?

fammi sapere

@francesco-ooops

francesco-ooops commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Non sto testando funzionalmente, sto solo cercando di far sì che non si disallineino troppo le due versioni (dato che spesso non vengono aperte issue di tracciamento per modifiche alla 18)

Credo comunque non sia ideale lasciare a stagionare in balcone tutte queste PR di migrazione alla 19, a sto punto meglio mergiarle (anche con un disclaimer che il focus per l'associazione Odoo Italia è sulla 18) in modo da cercare di portare avanti le modifiche su entrambe e avere anche un riscontro reale su cosa comporta per la community portare avanti due versioni contigue

@micheledic

Copy link
Copy Markdown
Contributor

Non sto testando funzionalmente, sto solo cercando di far sì che non si disallineino troppo le due versioni (dato che spesso non vengono aperte issue di tracciamento per modifiche alla 18)

Credo comunque non sia ideale lasciate a stagionare in balcone tutte queste PR di migrazione alla 19, a sto punto meglio mergiarle (anche con un disclaimer che il focus per l'associazione Odoo Italia è sulla 18) in modo da cercare di portare avanti le modifiche su entrambe e avere anche un riscontro reale su cosa comporta per la community portare avanti due versioni contigue

Sono d'accordo, meglio iniziare a mergiarle

@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch 5 times, most recently from cce433e to 92d481b Compare March 24, 2026 20:41
@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch 5 times, most recently from acfad2d to 87dc8df Compare March 27, 2026 16:00
monen17 and others added 29 commits June 11, 2026 13:05
Also align its configuration in the README to what it actually does
Currently translated at 100.0% (193 of 193 strings)

Translation: l10n-italy-18.0/l10n-italy-18.0-l10n_it_edi_extension
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_edi_extension/it/
Currently translated at 100.0% (194 of 194 strings)

Translation: l10n-italy-18.0/l10n-italy-18.0-l10n_it_edi_extension
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_edi_extension/it/
Invalid content was found starting with element 'DatiOrdineAcquisto'. One of '{FatturaPrincipale}' is expected.
…raElettronica/FatturaElettronicaBody/DatiGenerali/DatiGeneraliDocumento/ImportoTotaleDocumento

Odoo core commit 0b54f84 (Feb 17, 2026) — [FIX] l10n_it_edi: fix total in company currency — changed ImportoTotaleDocumento from using invoice currency amounts (base_amount_currency/tax_amount_currency) to company currency amounts (base_amount/tax_amount).
This is correct per Italian tax law (art. 21, c. 2, lett. l, D.P.R. 633/72): since Divisa must be EUR for Italian-resident issuers, ImportoTotaleDocumento can also be expressed in EUR.
For l10n_it_edi_extension, the USD invoice (1068.11 USD at rate 1.0789) now correctly reports 990.00 EUR as the total.
Co-authored-by: Simone Rubino <simone.rubino88@gmail.com>
When a zip is imported, the customer invoices must use sale taxes.
Core 18.0 took over partner and bank creation during FatturaPA
import. Align the module to fill only the Italian extras core
does not handle.

* Partner update runs on each imported invoice. Core fills name,
  VAT, address and contact data; this module writes Provincia,
  EORI, Albo* and the firstname/lastname split via
  _l10n_it_edi_update_partner. The hook
  _l10n_it_edi_extension_core_partner_fields lists fields core
  writes so the override leaves them alone.

* Drop the l10n_edi_it_create_partner flag. Core creates the
  partner itself, so the field, related setting, view and
  translations are dead code.

* _l10n_it_edi_extension_create_partner follows the path core
  uses for buyer/seller: lookup by Codice Fiscale, delegate to
  _l10n_it_edi_import_partner, then fill the extras. Used for
  roles core skips (RappresentanteFiscale).

* New _l10n_it_edi_extension_update_partner_bank fills bank_id
  and acc_holder_name on partner banks core created, reading
  BIC, IstitutoFinanziario and Beneficiario from DatiPagamento.
  _l10n_it_edi_extension_get_bank_partner mirrors core's partner
  selection (invoice partner on incoming, company partner on
  outgoing). The search filters by company so banks belonging
  to other companies cannot match.

Tests adjusted: VAT arrives with the IT prefix from core, street
arrives capitalized through string.capwords, and the obsolete
test on the removed flag is gone.
@Borruso Borruso force-pushed the 19.0-mig-l10n_it_edi_extension branch from bcfea19 to c86e32c Compare June 11, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.