-
-
Notifications
You must be signed in to change notification settings - Fork 820
[19.0][OU-ADD] hr_skills_slides: Migration script #5849
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
Open
BhaveshHeliconia
wants to merge
1
commit into
OCA:19.0
Choose a base branch
from
HeliconiaIO:19.0-mig-hr_skills_slides
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/pre-migration.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Copyright 2026 Heliconia Solutions Pvt. Ltd. | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| from openupgradelib import openupgrade | ||
|
|
||
|
|
||
| @openupgrade.migrate() | ||
| def migrate(env, version): | ||
| openupgrade.logged_query( | ||
| env.cr, | ||
| """ | ||
| UPDATE hr_resume_line | ||
| SET course_type = 'elearning' | ||
| WHERE channel_id IS NOT NULL | ||
| """, | ||
| ) |
30 changes: 30 additions & 0 deletions
30
openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/upgrade_analysis_work.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| ---Models in module 'hr_skills_slides'--- | ||
|
|
||
| ---Fields in module 'hr_skills_slides'--- | ||
| hr_skills_slides / hr.resume.line / channel_id (many2one) : now a function | ||
| hr_skills_slides / hr.resume.line / course_type (False) : NEW selection_keys: ['elearning', 'external', 'onsite'], mode: modify | ||
|
|
||
| # DONE: pre-migration update course_type='elearning' where channel_id is not null | ||
|
|
||
| hr_skills_slides / hr.resume.line / course_url (char) : not a function anymore | ||
| hr_skills_slides / hr.resume.line / course_url (char) : now related | ||
| hr_skills_slides / hr.resume.line / display_type (False) : DEL selection_keys: ['certification', 'classic', 'course'], mode: modify | ||
| hr_skills_slides / hr.resume.line / duration (False) : NEW mode: modify, hasdefault: compute | ||
|
|
||
| # NOTHING TO DO | ||
|
|
||
| ---XML records in module 'hr_skills_slides'--- | ||
| DEL hr.resume.line.type: hr_skills_slides.resume_type_training [renamed to hr_skills module] | ||
|
|
||
| # NOTHING TO DO: handled in hr_skills migration | ||
|
|
||
| NEW ir.actions.act_window: hr_skills_slides.slide_channel_training_elearning_action | ||
| NEW ir.ui.menu: hr_skills_slides.menu_learnings_training_attendances_elearning | ||
| NEW ir.ui.view: hr_skills_slides.hr_employee_public_resume_view_form_inherit | ||
| NEW ir.ui.view: hr_skills_slides.hr_employee_public_view_form | ||
| NEW ir.ui.view: hr_skills_slides.hr_employee_resume_view_form_inherit | ||
| NEW ir.ui.view: hr_skills_slides.resume_slides_line_view_kanban | ||
| NEW ir.ui.view: hr_skills_slides.resume_slides_line_view_list | ||
| NEW ir.ui.view: hr_skills_slides.slide_channel_view_list | ||
|
|
||
| # NOTHING TO DO | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.