Skip to content

[18.0][FIX] hr_shift: reduce crash when missing data#26

Open
mathben wants to merge 2 commits intoOCA:18.0from
TechnoLibre:18.0_hr_shift_fix_first_execution
Open

[18.0][FIX] hr_shift: reduce crash when missing data#26
mathben wants to merge 2 commits intoOCA:18.0from
TechnoLibre:18.0_hr_shift_fix_first_execution

Conversation

@mathben
Copy link

@mathben mathben commented Feb 4, 2026

last_plan can be False and default_vals can be empty
fix typo Self #25 (comment)

@mathben
Copy link
Author

mathben commented Feb 4, 2026

This pull request correct this crash.
First execution without demo data.

    week_number=default_vals["week_number"],
                ~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'week_number'

@pedrobaeza pedrobaeza added this to the 18.0 milestone Feb 4, 2026
Copy link
Contributor

@david-banon-tecnativa david-banon-tecnativa left a comment

Choose a reason for hiding this comment

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

LGTM, some minor comments

@mathben mathben force-pushed the 18.0_hr_shift_fix_first_execution branch from 465c906 to 877a47b Compare February 4, 2026 18:03
@mathben
Copy link
Author

mathben commented Feb 4, 2026

@david-banon-tecnativa Thanks for your reviews, I implement your proposition.

@david-banon-tecnativa
Copy link
Contributor

Thanks, please force push again, CI failed but i don't think its related to the PR

@pedrobaeza
Copy link
Member

I'm able to relaunch it, so I have done it. Let's see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants