diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index fd4b86e2175e..dcbd605258a9 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -198,23 +198,23 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_org_chart |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_presence | | | +| hr_presence |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_recruitment |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_recruitment_skills | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_recruitment_sms | | | +| hr_recruitment_sms |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_recruitment_survey | |No DB layout changes. | +| hr_recruitment_survey |Done |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_skills | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| hr_skills_event | | | +| |new| hr_skills_event |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_skills_slides | | | +| hr_skills_slides |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_skills_survey | | | +| hr_skills_survey |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_timesheet |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -224,7 +224,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| hr_work_entry_contract | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_work_entry_holidays | |No DB layout changes. | +| hr_work_entry_holidays |Nothing to do |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |new| html_builder |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/hr_calendar/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_calendar/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..b669d1c20875 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_calendar/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'hr_calendar'--- + +---Fields in module 'hr_calendar'--- +hr_calendar / calendar.event / unavailable_partner_ids (many2many): module is now 'calendar' ('hr_calendar') + +# NOTHING TO DO + +---XML records in module 'hr_calendar'--- +DEL ir.ui.view: hr_calendar.view_calendar_event_form +DEL ir.ui.view: hr_calendar.view_calendar_event_form_quick_create + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py new file mode 100644 index 000000000000..4ed3afba1102 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py @@ -0,0 +1,13 @@ +from openupgradelib import openupgrade + +_xmlids_to_delete = [ + "hr_fleet.fleet_rule_contract_visibility_user", + "hr_fleet.fleet_rule_odometer_visibility_user", + "hr_fleet.fleet_rule_service_visibility_user", + "hr_fleet.fleet_rule_vehicle_visibility_user", +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id(env, _xmlids_to_delete) diff --git a/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..d6e8909ec312 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,11 @@ +---Models in module 'hr_fleet'--- + +---Fields in module 'hr_fleet'--- + +---XML records in module 'hr_fleet'--- +DEL ir.rule: hr_fleet.fleet_rule_contract_visibility_user (noupdate) +DEL ir.rule: hr_fleet.fleet_rule_odometer_visibility_user (noupdate) +DEL ir.rule: hr_fleet.fleet_rule_service_visibility_user (noupdate) +DEL ir.rule: hr_fleet.fleet_rule_vehicle_visibility_user (noupdate) +DEL ir.ui.view: hr_fleet.res_users_view_form_preferences +# DONE: delete_records_safely_by_xml_id in pre-migration. diff --git a/openupgrade_scripts/scripts/hr_gamification/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_gamification/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..a5799f1750e2 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_gamification/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'hr_gamification'--- + +---Fields in module 'hr_gamification'--- + +---XML records in module 'hr_gamification'--- +NEW ir.model.access: hr_gamification.badge_base_user +NEW ir.rule: hr_gamification.hr_gamification_badge_base_user_not_owned_access (noupdate) +NEW ir.rule: hr_gamification.hr_gamification_badge_base_user_owned_access (noupdate) +NEW ir.rule: hr_gamification.hr_gamification_badge_group_hr_user_access (noupdate) +NEW ir.ui.view: hr_gamification.view_current_badge_form + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_homeworking/19.0.2.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_homeworking/19.0.2.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..e4c30b88afcb --- /dev/null +++ b/openupgrade_scripts/scripts/hr_homeworking/19.0.2.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'hr_homeworking'--- + +---Fields in module 'hr_homeworking'--- + +---XML records in module 'hr_homeworking'--- +NEW ir.ui.view: hr_homeworking.res_users_view_form + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_livechat/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_livechat/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..062656ddd22d --- /dev/null +++ b/openupgrade_scripts/scripts/hr_livechat/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,10 @@ +---Models in module 'hr_livechat'--- + +---Fields in module 'hr_livechat'--- + +---XML records in module 'hr_livechat'--- +NEW ir.ui.view: hr_livechat.discuss_channel_looking_for_help_view_search +NEW ir.ui.view: hr_livechat.im_livechat_report_channel_view_search +NEW ir.ui.view: hr_livechat.website_livechat_agent_history_view_search + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_maintenance/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_maintenance/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..05b0a2877671 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_maintenance/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'hr_maintenance'--- + +---Fields in module 'hr_maintenance'--- +hr_maintenance / res.users / equipment_ids (one2many) : DEL relation: maintenance.equipment + +# NOTHING TO DO + +---XML records in module 'hr_maintenance'--- +NEW ir.ui.view: hr_maintenance.hr_employee_public_view_form +DEL ir.ui.view: hr_maintenance.res_users_view_form_preference + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_presence/19.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/post-migration.py new file mode 100644 index 000000000000..c4e7d6ca3965 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "hr_presence", "19.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/hr_presence/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..cbd949dde7b7 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'hr_presence'--- + +---Fields in module 'hr_presence'--- + +---XML records in module 'hr_presence'--- +DEL ir.ui.view: hr_presence.hr_employee_view_tree +# NOTHING TO DO: Odoo's -u all cleanup removes orphan views. + +# DONE: noupdate_changes.xml loaded in post-migration. diff --git a/openupgrade_scripts/scripts/hr_recruitment_sms/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_recruitment_sms/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..c86b2498058c --- /dev/null +++ b/openupgrade_scripts/scripts/hr_recruitment_sms/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,10 @@ +---Models in module 'hr_recruitment_sms'--- + +---Fields in module 'hr_recruitment_sms'--- + +---XML records in module 'hr_recruitment_sms'--- +DEL ir.actions.act_window: hr_recruitment_sms.action_hr_applicant_mass_sms +DEL ir.actions.act_window: hr_recruitment_sms.action_hr_candidate_mass_sms +NEW ir.actions.server: hr_recruitment_sms.action_applicant_send_sms + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/post-migration.py new file mode 100644 index 000000000000..04912bf6501e --- /dev/null +++ b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/post-migration.py @@ -0,0 +1,13 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "hr_recruitment_survey", "19.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "hr_recruitment_survey", + [ + "mail_template_applicant_interview_invite", + ], + ) diff --git a/openupgrade_scripts/scripts/hr_skills_event/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_skills_event/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..f58ca86b4612 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_skills_event/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,16 @@ +---Models in module 'hr_skills_event'--- + +---Fields in module 'hr_skills_event'--- +hr_skills_event / hr.resume.line / course_type (False) : NEW selection_keys: ['external', 'onsite'], mode: modify +hr_skills_event / hr.resume.line / event_id (many2one) : NEW relation: event.event, isfunction: function, stored + +# NOTHING TO DO + +---XML records in module 'hr_skills_event'--- +NEW ir.actions.act_window: hr_skills_event.event_training_onsite_action +NEW ir.ui.menu: hr_skills_event.menu_learnings_training_attendances_onsite +NEW ir.ui.view: hr_skills_event.resume_slides_line_view_form +NEW ir.ui.view: hr_skills_event.resume_slides_line_view_kanban +NEW ir.ui.view: hr_skills_event.resume_slides_line_view_list + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/pre-migration.py new file mode 100644 index 000000000000..4200b0302301 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/pre-migration.py @@ -0,0 +1,21 @@ +from openupgradelib import openupgrade + +# 18.0 eLearning training lines are display_type='course'; in 19.0 the +# categorization key is course_type='elearning' (hr_skills fills the new +# required column with its 'external' default, and channel_id's compute +# wipes the channel on any line whose course_type isn't 'elearning'). + + +@openupgrade.migrate() +def migrate(env, version): + if openupgrade.column_exists( + env.cr, "hr_resume_line", "display_type" + ) and openupgrade.column_exists(env.cr, "hr_resume_line", "course_type"): + openupgrade.logged_query( + env.cr, + """ + UPDATE hr_resume_line + SET course_type = 'elearning' + WHERE display_type = 'course' + """, + ) diff --git a/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..234fa5cbc1c6 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,24 @@ +---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 +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 + +# DONE: pre-migration: display_type='course' lines remapped to course_type='elearning' (keeps channel_id from being wiped by its compute) + +---XML records in module 'hr_skills_slides'--- +DEL hr.resume.line.type: hr_skills_slides.resume_type_training [renamed to hr_skills module] +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 diff --git a/openupgrade_scripts/scripts/hr_skills_survey/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_skills_survey/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..7482def1d263 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_skills_survey/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,16 @@ +---Models in module 'hr_skills_survey'--- + +---Fields in module 'hr_skills_survey'--- +hr_skills_survey / hr.resume.line / department_id (False) : NEW mode: modify +hr_skills_survey / hr.resume.line / department_id (many2one) : module is now 'hr_skills' ('hr_skills_survey') +hr_skills_survey / hr.resume.line / display_type (False) : DEL selection_keys: ['certification', 'classic'], mode: modify + +# NOTHING TO DO + +---XML records in module 'hr_skills_survey'--- +DEL ir.actions.act_window: hr_skills_survey.hr_employee_certification_report_action [renamed to hr_skills module] +DEL ir.ui.menu: hr_skills_survey.hr_employee_certication_report_menu +DEL ir.ui.view: hr_skills_survey.hr_employee_certification_report_view_list +DEL ir.ui.view: hr_skills_survey.hr_resume_line_view_search + +# NOTHING TO DO