Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[16.0][FIX] fastapi: close cursor after rollback #405

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Dec 18, 2023

This is to ensure that retrying in service/model.py does not try to flush.

https://github.com/odoo/odoo/blob/ab049b9a8e433c41028d3b6da94e4eca6fe2ea19/odoo/service/model.py#L134-L135

@sbidoul sbidoul changed the title [FIX] fastapi: close cursor after rollback [16.0][FIX] fastapi: close cursor after rollback Dec 18, 2023
@OCA-git-bot
Copy link
Contributor

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

This is to ensure that `retrying` in `service/model.py` does not try to flush.
@lmignon lmignon force-pushed the fastapi-close-cursor-on-error-sbi branch from 1a2a5cf to 8be7fbb Compare December 21, 2023 10:40
@sbidoul
Copy link
Member Author

sbidoul commented Dec 21, 2023

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-405-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f40f84b into OCA:16.0 Dec 21, 2023
6 checks passed
@OCA-git-bot
Copy link
Contributor

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

@sbidoul sbidoul deleted the fastapi-close-cursor-on-error-sbi branch December 21, 2023 11:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants