Skip to content
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

[15.0][IMP] resource_booking: No create/unlink call if nothing to do #113

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

pedrobaeza
Copy link
Member

Depending on how the create/unlink overrides are programmed, there can be overheads or blocking things when calling unconditionally these methods, even with an empty list, so let's only call them when there is really something to delete or to create.

This has been discovered as google_calendar module is calling Google API on calendar event create (although vals_list being empty), and due to an error with Google API right now, I was not able to create a draft resource booking.

@Tecnativa

Depending on how the create/unlink overrides are programmed, there can
be overheads or blocking things when calling unconditionally these
methods, even with an empty list, so let's only call them when there
is really something to delete or to create.

This has been discovered as `google_calendar` module is calling Google
API on calendar event create (although vals_list being empty), and due
to an error with Google API right now, I was not able to create a
draft resource booking.
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-113-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7b2da61 into OCA:15.0 Jan 5, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 448f051. 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