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][FIX] sale_planner_calendar: Recurrent events not removed when changing the recurrence from the planner #2659

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

CarlosRoca13
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 changed the title [FIX] sale_planner_calendar: Recurrent events not removed when changing the recurrence from the planner [15.0][FIX] sale_planner_calendar: Recurrent events not removed when changing the recurrence from the planner Aug 29, 2023
def _rewrite_recurrence(self, values, time_values, recurrence_values):
"""Remove key from context when this method is executed to avoid loose
information when accesing calendar_event_ids of the recurrence_id.
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set ctx before condition to avoid "local variable 'ctx' referenced before assignment" error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

…ng the recurrence from the planner

By doing this change we avoid avoid loose information when accesing
calendar_event_ids of the recurrence_id.
@pedrobaeza pedrobaeza added this to the 15.0 milestone Aug 30, 2023
@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-2659-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6772009 into OCA:15.0 Aug 30, 2023
7 of 9 checks passed
@OCA-git-bot
Copy link
Contributor

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

5 participants