Skip to content

[18.0][ADD]l10n_it_edi_related_document: l10n_it_edi extension for multiple related document type management#4749

Merged
OCA-git-bot merged 2 commits into
OCA:18.0from
odooNextev:18.0-add-l10n_it_edi_document
Sep 5, 2025
Merged

[18.0][ADD]l10n_it_edi_related_document: l10n_it_edi extension for multiple related document type management#4749
OCA-git-bot merged 2 commits into
OCA:18.0from
odooNextev:18.0-add-l10n_it_edi_document

Conversation

@matteotognini

@matteotognini matteotognini commented May 8, 2025

Copy link
Copy Markdown

Allows import and export of multiple related document types, similar to l10n_it_fatturapa. Also removes the read-only restriction on lineRef. Removes the invoice_line reference from the related document type model, as it is only needed in the report.
Hides l10n_it_edi fields from the invoice view, but keeps them available for import.

@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from 26f0293 to bdcf23f Compare May 8, 2025 12:57
@matteotognini matteotognini changed the title [18.0][ADD]l10n_it_edi_related_document_type [18.0][ADD]l10n_it_edi_related_document_type: l10n_it_edi extension for multiple related document type management May 8, 2025
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch 2 times, most recently from 6a0954b to d4c7a72 Compare May 8, 2025 13:14

@monen17 monen17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Come dicevo stamattina in chiamata, secondo me anche questo si potrebbe includere in l10n_it_edi_extension (#4411) perché non vedo grandi differenze tra questa funzionalità e la visualizzazione dell'anteprima, o le altre funzionalità già incluse in quel modulo.

Anche lasciarlo in un modulo a sé ha senso, ma allora potevamo farlo anche per le altre funzionalità 🤷

Quindi per me vanno bene entrambe le soluzioni.


Non ho visto script di migrazione, quindi se uno migra da 16.0 perde tutti i documenti collegati alle fatture?

Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document_type/tests/test_import_xml.py
Comment thread l10n_it_edi_related_document_type/readme/CONFIGURE.md Outdated
Comment thread l10n_it_edi_related_document_type/readme/DESCRIPTION.md
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch 2 times, most recently from d691ce1 to 0e22e76 Compare May 12, 2025 14:56
@matteotognini

Copy link
Copy Markdown
Author

@monen17 Grazie mille per la review! Seguendo le indicazioni e commenti nella task del portale Odoo Italia ho scelto di farlo in un modulo separato. Non ci sarebbero comunque problemi ad aggiungere le funzionalità in l10n_it_edi_extension.
Al momento non ho aggiunto lo script di migrazione, lo posso aggiungere nei prossimi giorni per evitare di perdere i documenti collegati alle fatture.

@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from ba46619 to 6cf4ab5 Compare May 15, 2025 11:41
@matteotognini matteotognini requested a review from monen17 May 15, 2025 11:45

@monen17 monen17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie delle modifiche!
Oltre ai punti ancora aperti qui sotto, manca ancora lo script di migrazione.

Ah e ricorda di modificare anche il messaggio del commit visto che il nome del modulo è cambiato.

Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move_line.py Outdated
Comment thread l10n_it_edi_related_document/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document/tests/test_import_xml.py Outdated
Comment thread l10n_it_edi_related_document/views/l10n_it_views.xml Outdated
Comment thread l10n_it_edi_related_document/views/related_document_views.xml Outdated
Comment thread l10n_it_edi_related_document/views/l10n_it_views.xml Outdated
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch 2 times, most recently from 190129c to fbc1827 Compare May 23, 2025 12:05
@matteotognini

Copy link
Copy Markdown
Author

@monen17 Grazie anche per questa review! Ho aggiornato la pr per gestire il collegamento tra le righe di fattura e i documenti collegati, sia in import xml che nel create.
Ho aggiunto anche lo script di migrazione.

@matteotognini matteotognini requested a review from monen17 May 23, 2025 15:22

@monen17 monen17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho fatto solo revisione del codice e secondo me manca solo più qualche piccola modifica; non ho modo di verificare la migrazione ma a occhio mi sembra ok.

Comment thread l10n_it_edi_related_document_type/views/account_move_related_documents.xml Outdated
Comment thread l10n_it_edi_related_document/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document_type/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document_type/readme/DESCRIPTION.md
Comment thread l10n_it_edi_related_document/views/l10n_it_views.xml Outdated
Comment thread l10n_it_edi_related_document/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document/views/related_document_views.xml Outdated
Comment thread l10n_it_edi_related_document/views/l10n_it_views.xml Outdated
Comment thread l10n_it_edi_related_document/tests/test_import_xml.py
Comment thread l10n_it_edi_related_document/views/related_document_views.xml
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from fbc1827 to 0a90443 Compare May 28, 2025 14:35
@matteotognini matteotognini requested a review from monen17 May 29, 2025 06:34
@matteotognini matteotognini changed the title [18.0][ADD]l10n_it_edi_related_document_type: l10n_it_edi extension for multiple related document type management [18.0][ADD]l10n_it_edi_related_document: l10n_it_edi extension for multiple related document type management Jun 5, 2025
@odooNextev odooNextev mentioned this pull request Jun 5, 2025
46 tasks
@francesco-ooops

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_it_edi_related_document

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jun 5, 2025
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from 2e03825 to 5a2c2b4 Compare June 23, 2025 14:19
@odooNextev

Copy link
Copy Markdown
Contributor

@monen17 puoi re-revisionare?

)


@openupgrade.migrate()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

togliere decoratore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Borruso puoi aggiornare la review visto che è stata sistemata la migrazione?

@monen17 monen17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie delle modifiche!
Ho fatto revisione del codice e per me è ok.

Non ho guardato la migrazione, e come ha detto stamattina @eLBati in chiamata potrebbe essere che non venga proprio eseguita essendo questo un nuovo modulo.
Stamattina però abbiamo anche detto che non è necessario migrare i dati per procedere al merge quindi ok così.

Comment thread l10n_it_edi_related_document/tests/test_import_xml.py
Comment thread l10n_it_edi_related_document/models/account_move.py Outdated
Comment thread l10n_it_edi_related_document/views/related_document_views.xml
@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from b084dfb to 1f8ff2e Compare July 11, 2025 14:50
Borruso added a commit to DinamicheAziendali/l10n-italy that referenced this pull request Jul 14, 2025
@matteotognini

Copy link
Copy Markdown
Author

Ho testato le migrazioni in locale e cosi vengono applicate correttamente all'installazione del modulo

@matteotognini matteotognini force-pushed the 18.0-add-l10n_it_edi_document branch from 79bd60b to 58529a4 Compare July 16, 2025 14:59

@Borruso Borruso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tafaRU

tafaRU commented Sep 5, 2025

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-4749-by-tafaRU-bump-nobump, awaiting test results.

@OCA OCA deleted a comment from OCA-git-bot Sep 5, 2025
@OCA OCA deleted a comment from OCA-git-bot Sep 5, 2025
@OCA-git-bot OCA-git-bot merged commit f03e5f6 into OCA:18.0 Sep 5, 2025
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at a51ea89. Thanks a lot for contributing to OCA. ❤️

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.

8 participants