[18.0] [FIX] l10n_it_riba_oca: revert and fix related documents computation#4984
Merged
OCA-git-bot merged 1 commit intoNov 17, 2025
Merged
Conversation
Contributor
Author
ee49476 to
4f0b830
Compare
Now it checks both:
- Invoice-level related documents (account.move.related_document_ids)
- Invoice line-level related documents (account.move.line.related_document_ids)
Priority: Invoice line-level values always take precedence over invoice-level values.
6cf34b7 to
93eaf8a
Compare
Contributor
|
/ocabot merge minor |
Contributor
|
What a great day to merge this nice PR. Let's do it! |
Contributor
|
Congratulations, your PR was merged at 474a6e7. Thanks a lot for contributing to OCA. ❤️ |
Contributor
Author
Grazie |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: odoo-italia/task989
Ripristina il collegamento calcolato con i documenti correlati per impostare CIG e CUP nelle Ri.Ba.
Inoltre ho cercato di migliorare l'assegnazione controllando separatamente i dati a livello:
Invoice line-level deve prevalere ed in caso di più occorrenze per la stessa riga di distinta viene sollevata un'eccezione.