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

[16.0][FIX] hr_employee_calendar_planning: Avoid error in post_init_hook with leaves that do not already exist #1439

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

victoralmau
Copy link
Member

Avoid error in post_init_hook with leaves that do not already exist

Example use case:

  • Install hr_holidays
  • Install hr_employee_calendar_planning
odoo.exceptions.CacheMiss: 'resource.calendar.leaves(44,).resource_id'

odoo.exceptions.MissingError: Record does not exist or has been deleted.
(Record: resource.calendar.leaves(44,), User: 1)

@Tecnativa

…th leaves that do not already exist

Example use case:
- Install hr_holidays
- Install hr_employee_calendar_planning

odoo.exceptions.CacheMiss: 'resource.calendar.leaves(44,).resource_id'

odoo.exceptions.MissingError: Record does not exist or has been deleted.
(Record: resource.calendar.leaves(44,), User: 1)
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza added this to the 16.0 milestone Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants