Skip to content

[16.0][MIG] l10n_it_fatturapa_out_dn: Migration to 16.0#5154

Merged
OCA-git-bot merged 8 commits into
OCA:16.0from
TheMule71:16.0-mig-l10n_it_fatturapa_out_dn
Mar 25, 2026
Merged

[16.0][MIG] l10n_it_fatturapa_out_dn: Migration to 16.0#5154
OCA-git-bot merged 8 commits into
OCA:16.0from
TheMule71:16.0-mig-l10n_it_fatturapa_out_dn

Conversation

@TheMule71

@TheMule71 TheMule71 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

vd #4054

vd #4054 (review)

Fixes: #4005

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_out_dn branch from 82db26c to 9efa782 Compare March 23, 2026 15:16
@monen17

monen17 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_it_fatturapa_out_dn

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Mar 23, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 23, 2026
81 tasks

@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.

Veramente le due PR sono andate avanti in parallelo, tant'è che questa è stata creata un anno prima che l'altra venisse mergiata. I commit sono stati portati a mano.

Comunque si può simulare una migrazione e riportare le modifiche:

#5154

Originally posted by @TheMule71 in #4054 (comment)

Grazie di aver convertito la PR in una migrazione!
Purtroppo quello che hai scritto può capitare quando si aggiungono le stesse modifiche a più versioni contemporaneamente.

In questa migrazione vedo che è tutto nel commit [MIG], puoi separare le modifiche fatte automaticamente da pre-commit da quelle necessarie per la migrazione? Ti consiglio di usare https://github.com/OCA/odoo-module-migrator per creare il branch della migrazione e poi sostituire l'ultimo commit con quello che hai in questa PR.
Ad esempio la conversione dei file da .rst a .md viene fatta in automatico, quindi non dovrebbe essere nel commit [MIG].

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_out_dn branch from 9efa782 to e3283d1 Compare March 23, 2026 19:19
@TheMule71

Copy link
Copy Markdown
Contributor Author

Vero. Curioso.
Ho uno script che mi automatizza gli step di migrazione e mi crea automaticamente il commit '[IMP] l10n_it_fatturapa_out_dn: pre-commit stuff' - devo averlo aggressivamente squashato per sbaglio quando ho riarrangiato i commit forse? Boh. Comunque grazie.

Ho rilanciato il mio script da zero. E il commit c'è. E ho anche provato odoo-module-migrate. L'unica differenza è che ti crea un commit '[MIG] l10n_it_fatturapa_out_dn: Migration to 16.0' che bumpa solo la versione nel manifest. Per cui andrebbe fatto un --amend dopo, ma il risultato è lo stesso.

Il commit [MIG] dovrebbe contenere tutte le modifiche fatte in fase di migrazione (tranne pre-commit che sono in un commit a parte). In questo caso però le modifiche dipendono da un tuo commit per cui lo sposto prima.

@TheMule71

Copy link
Copy Markdown
Contributor Author

Ho indagato un po' e non l'ho squashato ma ad un certo punto era sparito comunque. Comunque adesso dovrebbe essere mergiabile.

@TheMule71 TheMule71 requested a review from monen17 March 23, 2026 19:41

@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!
Per me i commit e il codice vanno bene, lascio fare le prove a chi userà davvero il modulo

Comment on lines +58 to +62
e_invoice_delivery_note_lines = e_invoice_lines.filtered(
lambda l: l.delivery_note_id == delivery_note
)

def _filterfn(li, delivery_note=delivery_note):
return li.delivery_note_id == delivery_note

e_invoice_delivery_note_lines = e_invoice_lines.filtered(_filterfn)

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.

Si poteva anche lasciare la lambda con qualcosa tipo:

            e_invoice_delivery_note_lines = e_invoice_lines.filtered(
                lambda li, dn=delivery_note: li.delivery_note_id == dn
            )

Ma anche così va bene 👍

Comment on lines +92 to +99
self.set_sequences(10, invoice_date)
# we don't want to really depend on defaults for the name, here
invoice.name = "INV/2019/08/0001"

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.

Giusto 👍

@monen17 monen17 changed the title [16.0][MIG] l10_it_fatturapa_out_dn: Migration to 16.0 [16.0][MIG] l10n_it_fatturapa_out_dn: Migration to 16.0 Mar 23, 2026
@monen17 monen17 linked an issue Mar 23, 2026 that may be closed by this pull request
3 tasks
@TheMule71

Copy link
Copy Markdown
Contributor Author

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-5154-by-TheMule71-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 179ffef into OCA:16.0 Mar 25, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@TheMule71 TheMule71 deleted the 16.0-mig-l10n_it_fatturapa_out_dn branch March 25, 2026 13:41
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.

l10n_fatturapa_out: output delivery note data in XML

6 participants