-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0] [FIX] Ricevere fatture elettroniche in base64 via PEC #2915 #3500
[14.0] [FIX] Ricevere fatture elettroniche in base64 via PEC #2915 #3500
Conversation
Hi @sergiocorato, |
55ea093
to
ee040de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grazie della PR!
Ti stavo giusto chiedendo di mantenere l'authorship ma vedo che l'hai appena fatto 😄.
Ho fatto revisione del codice e secondo me va bene.
Il messaggio del commit dovrebbe essere in inglese e menzionare il modulo che modifica per seguire https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message.
Per modificarlo puoi fare cherry-pick del commit della 12.0
2be5317
ee040de
to
55b1ff7
Compare
Nota per il forward port alla 16.0. Questa PR dipende dalla #3118. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non avevo notato che questa PR modifica due moduli in un unico commit, anche questo non si potrebbe fare secondo https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message, riesci spezzarli come erano in #2916 ?
@TheMule71 stamattina diceva (e abbiamo condiviso anche io e @tafaRU) che tocca sì 2 moduli, ma la piccola modifica della docstring di un metodo di l10n_it_sdi_channel sarebbe inutile senza l'altra a l10n_it_fatturapa_pec, è quindi corretto fare un singolo commit. |
Capito, secondo me invece vanno separati come avevo fatto in origine quindi la mia review rimane così, ovviamente si può mergiare lo stesso se arrivano altre approvazioni. |
55b1ff7
to
a7c4da2
Compare
Co-authored-by: odooNextev <[email protected]>
a7c4da2
to
a960b33
Compare
Per me non c'è ragione per separare commit per moduli come principio generale. Come principio generale, si separano patch che non c'entrano una con l'altra. A volte, il fatto che siano in moduli diversi è un buon indicatore del fatto che non c'entrino una con l'altra. A volte no. Oggi facevo l'esempio di un commit che cambia la signature di un metodo, modifica non solo il modulo in questione ma anche tutti i chiamanti. Separare quel commit per modulo è sbagliato in quanto crea dei commit "rotti", che non funzionano. In questo caso, trattandosi di un commento, è abbastanza irrilevante. Il mio scopo è quello di non rompere l'uso di Comunque a livello di logica anche in questo caso, se uno atterrasse sul commit intermedio tipo 2be531798c2e1333f175287891ad6527ee72aaa9 e si mettesse ad esplorare i sorgenti, si troverebbe a leggere un commento sbagliato nel file Le modifiche correlate vanno tenute nello stesso commit, le modifiche indipendenti andrebbero separate. |
Però così, alla migrazione ci troverremmo lo stesso messaggio di commit presente per diversi moduli e non più allineato con il contenuto del commit migrato. Se pensi che vada gestito in modo diverso dalle linee guida in https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message puoi proporre lì delle modifiche. |
Non è necessario. Quanto propongo è perfettamente conforme alle linee guida. Lo scopo del separare i commit è delineato esplicitamente: Nell'es. che ho fatto, un cambio di API, non ha alcun senso fare un revert per un modulo separatamente, perché lo romperebbe. Se si torna alla vecchia API, lo si fa ovunque, non avrebbe senso avere un solo modulo che chiama un metodo con la vecchia API non funzionante. Lo stesso vale per il nostro caso. Non avrebbe senso riportare indietro il commento allo stato precedende senza disfare anche l'altra parte del commit. O si decodifica base64 oppure no. Le modifiche, anche se riguardano due moduli diversi, sono un'unità indivisibile. |
@tafaRU si può mergiare? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 38dd780. Thanks a lot for contributing to OCA. ❤️ |
Hi Guys, thanks for the job. The filename POSTA CERTIFICATA: Invio File 7339338 (base64).txt is incompatible for a NTFS filesystem. Is it necessary to have ':' in the filename ? Thanks. |
.txt is not a valid xml you should have a .xml file |
I think it is possible to rename it, something similar has already been proposed for |
Risolve #2915 per la v14.0.