-
-
Notifications
You must be signed in to change notification settings - Fork 699
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][OU-ADD] hr_holidays #3913
Conversation
/ocabot migration hr_holidays |
openupgrade_scripts/scripts/hr_holidays/16.0.1.5/post-migration.py
Outdated
Show resolved
Hide resolved
bc590d7
to
f309dd4
Compare
Compute new values for allocation_validation_type on hr.leave.type as it is now a stored computed field with only two choices: "no" and "officer". Load noupdate_changes.
f309dd4
to
a7ff989
Compare
It set "no" by default except if employee_request is set to "no" | ||
where it set "officer". | ||
""" | ||
openupgrade.logged_query( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You only need to reallocate those with set
value to the corresponding one. Please don't write the rest that are OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As further explanation, imagine there's an extra module adding a new validation type. You are overwriting the leave types with this new validation type in this SQL.
Superseded by #4335 correcting the SQL query about |
Compute new values for allocation_validation_type on hr.leave.type as it is now a stored computed field with only two choices: "no" and "officer".
Load noupdate_changes.