[FIX] edi_core_oca: use savepoint to prevent state corruption on errors#284
Merged
OCA-git-bot merged 1 commit intoJul 3, 2026
Merged
Conversation
Contributor
wouitmil
approved these changes
May 22, 2026
SilvioC2C
approved these changes
May 22, 2026
8811e3e to
eb1ea7f
Compare
eb1ea7f to
bace507
Compare
Member
Author
Contributor
|
CI is red due to That's because |
bace507 to
ed2c8a7
Compare
Member
Author
|
oops, I did actually fix the CI issue by changing the file pattern some time ago, but overwritten it today when rebasing 🤦 ☕ |
Some errors such as ValueError, FileNotFoundError, exceptions.UserError, exceptions.ValidationError, are caught, never re-raised, and the transaction is finally committed. Which means a UserError/ValidationError gets committed, leading to corruption of the processed data.
ed2c8a7 to
989ce63
Compare
Member
Author
|
Pushed your simpler proposition of adding a ref field |
simahawk
approved these changes
Jul 3, 2026
Contributor
|
/ocabot merge patch Would you mind porting to v19? 🙏 |
Contributor
|
Hey, thanks for contributing! Proceeding to merge this for you. |
Contributor
|
Congratulations, your PR was merged at 11e4312. Thanks a lot for contributing to OCA. ❤️ |
Member
Author
Yep, done here: #316 |
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.
Some errors such as
are caught, never re-raised, and the transaction is finally committed.
Which means a UserError/ValidationError gets committed, leading to corruption of the processed data.