Skip to content

[19.0][FIX] edi_core_oca: use savepoint to prevent state corruption on errors#316

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
qoqa:19.0-fix-error-handling-state-corruption
Jul 3, 2026
Merged

[19.0][FIX] edi_core_oca: use savepoint to prevent state corruption on errors#316
OCA-git-bot merged 1 commit into
OCA:19.0from
qoqa:19.0-fix-error-handling-state-corruption

Conversation

@guewen

@guewen guewen commented Jul 3, 2026

Copy link
Copy Markdown
Member

Forward #284

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.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @etobella, @simahawk,
some modules you are maintaining are being modified, check this out!

@guewen guewen changed the title [FIX] edi_core_oca: use savepoint to prevent state corruption on errors [19.0][FIX] edi_core_oca: use savepoint to prevent state corruption on errors Jul 3, 2026
@simahawk

simahawk commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-316-by-simahawk-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 1d528c4 into OCA:19.0 Jul 3, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

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.

4 participants