-
-
Notifications
You must be signed in to change notification settings - Fork 316
[14.0][FIX/IMP]l10n_it_account & l10n_it_fatturapa_out: Nicer XML Validation errors #4266
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
Conversation
We don't want XML generation to fail if a field is empty (i.e. False) Once it's time to validate the XML, the system will produce a more meaningful and human-readable error.
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!
Ho provato in locale e a parte i commenti qui sotto funziona egregiamente.
Riusciresti ad aggiungere un test? Più che altro per le modifiche a l10n_it_fatturapa_out
perché sono un po' più articolate, forse puoi semplicemente sfruttare uno di quelli esistenti e controllare il messaggio di errore.
0fed0c3
to
e2684b6
Compare
Grazie della review @SirAionTech dovrei aver risolto tutti i commenti che mi hai lasciato. |
e2684b6
to
2f897a3
Compare
Ok, quando vuoi che ci riguardi ricorda per favore di segnare qui in github che devo aggiornare la revisione |
hai ragione, grazie |
Ma intanto devo capire perché ci sono questi errori che in locale io non ho... |
2f897a3
to
b43b9c7
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.
Ma intanto devo capire perché ci sono questi errori che in locale io non ho...
Esatto, i test sono da correggere.
Se vuoi mettere le mani nelle request
potrebbe tornarti utile guardare cosa fa MockRequest
(https://github.com/odoo/odoo/blob/948235079f002794f9837d3cf91e2d20e3254e20/addons/website/tools.py#L17), purtroppo non lo puoi usare perché è in website
.
Puoi provare ad eseguire i test come fa la CI, vedi i comandi https://github.com/OCA/l10n-italy/actions/runs/9908495939/job/27374393506?pr=4266#step:7:11 e https://github.com/OCA/l10n-italy/actions/runs/9908495939/job/27374393506?pr=4266#step:8:15.
Nel frattempo finché ci stai lavorando potresti mettere in bozza la PR.
Poi quando i test saranno a posto potrai impostare la PR come "Pronta per review" e chiedere di aggiornare eventuali revisioni.
48f2e19
to
39cca25
Compare
39cca25
to
cd0c490
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.
Ho verificato in locale e mi pare essere tutto ok.
Ho fatto revisione del codice e verificato che il nuovo test giustamente fallisce senza queste modifiche.
Ho messo qualche commento qui sotto, ma secondo me niente di bloccante per il merge.
cd0c490
to
57596aa
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.
Funzionale ok!
@TheMule71 il commento che inizia con
poco sopra le modifiche a |
@TheMule71 che dici? |
This PR has the |
@SirAionTech non mi sembra il caso di bloccarci su del codice commentato, mergiamo e se @TheMule71 risponderà facciamo volentieri una nuova PR :) |
Io gli darei ancora qualche giorno per rispondere, non è passata nemmeno una settimana; se vuoi mergiare però sai come si fa una |
@OCA/local-italy-maintainers buondì, potreste sbloccarmi questa? grazie! |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 7b09e4c. Thanks a lot for contributing to OCA. ❤️ |
Domani apro la issue, giuro 👼Issue #4270
The strategy here is
False
)