From dce8e9d3902793807e1e2ce4ba19769a98519f58 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 14:59:47 +0200 Subject: [PATCH 1/8] [OU-ADD] l10n_fr: Migration scripts TT61942 --- docsource/modules180-190.rst | 2 +- .../l10n_fr/19.0.2.1/post-migration.py | 9 +++++++++ .../scripts/l10n_fr/19.0.2.1/pre-migration.py | 19 +++++++++++++++++++ .../19.0.2.1/upgrade_analysis_work.txt | 13 +++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..9fdaef3d744d 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -390,7 +390,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fi_sale | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_fr | | | +| l10n_fr |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr_account | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py new file mode 100644 index 000000000000..1bf575e06312 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2026 Tecnativa - Pilar Vargas +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "l10n_fr", "19.0.2.1/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py new file mode 100644 index 000000000000..f3f69668f9a5 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py @@ -0,0 +1,19 @@ +# Copyright 2026 Tecnativa - Pilar Vargas +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # Migrate SIRET values to company_registry without overwriting existing data. + openupgrade.logged_query( + env.cr, + """ + UPDATE res_partner + SET company_registry = siret + WHERE siret IS NOT NULL + AND siret != '' + AND (company_registry IS NULL OR company_registry = '') + """, + ) diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..bf0f8023e9bd --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt @@ -0,0 +1,13 @@ +---Models in module 'l10n_fr'--- +# NOTHING TO DO + +---Fields in module 'l10n_fr'--- +l10n_fr / res.partner / siret (char) : DEL +# DONE: pre-migration script migrated siret values to existing company_registry when empty. + +---XML records in module 'l10n_fr'--- +NEW ir.ui.view: l10n_fr.view_partner_form_inherit_l10n_fr +DEL ir.ui.view: l10n_fr.res_partner_form_l10n_fr +res.country.group: l10n_fr.fr_and_mc (noupdate) (noupdate switched) +DEL res.country.group: l10n_fr.dom-tom [renamed to base module] +# NOTHING TO DO From 415de0684fbcccb2a827d680a30ba4c10aeb3254 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 15:15:35 +0200 Subject: [PATCH 2/8] [OU-ADD] l10n_fr_account: Nothing to do TT61944 --- docsource/modules180-190.rst | 2 +- .../scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..ae3292c0dff6 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -392,7 +392,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_fr_account | | | +| l10n_fr_account |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr_facturx_chorus_pro | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt b/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt index 934aa8b552e1..a30688d7ffb5 100644 --- a/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt +++ b/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt @@ -1,5 +1,9 @@ ---Models in module 'l10n_fr_account'--- +# NOTHING TO DO + ---Fields in module 'l10n_fr_account'--- +# NOTHING TO DO + ---XML records in module 'l10n_fr_account'--- NEW account.report.expression: l10n_fr_account.tax_report_08_base_balance_from_tags_purchase NEW account.report.expression: l10n_fr_account.tax_report_09_base_balance_from_tags_purchase @@ -7,3 +11,4 @@ NEW account.report.expression: l10n_fr_account.tax_report_10_base_balance_from_t NEW account.report.expression: l10n_fr_account.tax_report_11_base_balance_from_tags_purchase NEW account.report.expression: l10n_fr_account.tax_report_9B_base_balance_from_tags_purchase DEL ir.ui.view: l10n_fr_account.res_partner_form_l10n_fr +# NOTHING TO DO From 3bd541346aa6641169189eb6119b2fcc066155b2 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 15:58:18 +0200 Subject: [PATCH 3/8] [OU-ADD] microsoft_outlook: Nothing to do TT63207 --- docsource/modules180-190.rst | 2 +- .../microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..5790ec280c7f 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -746,7 +746,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | microsoft_calendar | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| microsoft_outlook | | | +| microsoft_outlook |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | mrp |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..932d483cb709 --- /dev/null +++ b/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'microsoft_outlook'--- +# NOTHING TO DO + +---Fields in module 'microsoft_outlook'--- +microsoft_outlook / res.users / outgoing_mail_server_type (False): NEW selection_keys: ['default', 'gmail', 'outlook'], mode: modify +# NOTHING TO DO: module only adds the new 'outlook' selection value + +---XML records in module 'microsoft_outlook'--- +# NOTHING TO DO From a0b75ca0c9b19c8e7f58d540134c98bdefc82bf8 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 16:15:17 +0200 Subject: [PATCH 4/8] [OU-ADD] mail_bot_hr: Nothing to do TT63291 --- docsource/modules180-190.rst | 2 +- .../mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..bc72bbd4ea51 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -706,7 +706,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | mail_bot | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| mail_bot_hr | | | +| mail_bot_hr |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | mail_group | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..56c991eb6279 --- /dev/null +++ b/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'mail_bot_hr'--- +# NOTHING TO DO + +---Fields in module 'mail_bot_hr'--- +# NOTHING TO DO + +---XML records in module 'mail_bot_hr'--- +DEL ir.ui.view: mail_bot_hr.res_users_view_form_profile +# NOTHING TO DO: removed inherited user profile view only From c69dc8c0e3cf5a5acf5d4e14baf56b240944bf14 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Tue, 19 May 2026 09:52:17 -0400 Subject: [PATCH 5/8] [MIG] hr_*: analysis annotations for simple submodules --- docsource/modules180-190.rst | 24 +++++++++---------- .../19.0.1.0/upgrade_analysis_work.txt | 12 ++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 12 ++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 12 ++++++++++ .../19.0.2.0/upgrade_analysis_work.txt | 8 +++++++ .../19.0.1.0/upgrade_analysis_work.txt | 10 ++++++++ .../hr_presence/19.0.1.0/noupdate_changes.xml | 2 ++ .../19.0.1.0/upgrade_analysis_work.txt | 8 +++++++ .../19.0.1.0/upgrade_analysis_work.txt | 10 ++++++++ .../19.0.1.0/noupdate_changes.xml | 2 ++ .../19.0.1.0/upgrade_analysis_work.txt | 16 +++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 24 +++++++++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 16 +++++++++++++ 13 files changed, 144 insertions(+), 12 deletions(-) create mode 100644 openupgrade_scripts/scripts/hr_calendar/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_gamification/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_homeworking/19.0.2.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_livechat/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_presence/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_recruitment_sms/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_skills_event/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/hr_skills_survey/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index ab2ddedec63f..895fe29c9ffb 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -170,15 +170,15 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_attendance | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_calendar | | | +| hr_calendar |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| hr_contract | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_expense |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_fleet | | | +| hr_fleet |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_gamification | | | +| hr_gamification |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_holidays |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -186,35 +186,35 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| hr_holidays_contract | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_homeworking | | | +| hr_homeworking |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_homeworking_calendar | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_hourly_cost |Nothing to do |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_livechat | | | +| hr_livechat |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | hr_maintenance |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | 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/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..28688ce8953f --- /dev/null +++ b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---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 + +# NOTHING TO DO 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_presence/19.0.1.0/noupdate_changes.xml b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml index 9be71c78cc3f..7602978c1ec9 100644 --- a/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml @@ -1,7 +1,9 @@ + 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..c8cb4444324a --- /dev/null +++ b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---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 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/noupdate_changes.xml b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml index ac6715320ddf..fdd9df2f54fe 100644 --- a/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml @@ -1,5 +1,6 @@ + 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/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..e7b89b81c907 --- /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 + +# 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] +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 From 89a82af4cae2fde1daf6c3e15e539b399300616d Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Wed, 27 May 2026 11:27:54 -0400 Subject: [PATCH 6/8] [MIG] hr_*: analyses for simple submodules Mirrors OCA/OpenUpgrade#5634 with reviewer feedback addressed: - docsource: use 'Nothing to do' in col-2 (not 'Done' + col-3 'Nothing to do'); preserve original col-3 notes where present. - hr_presence, hr_recruitment_survey, hr_timesheet: revert hand-edits of noupdate_changes.xml; load via openupgrade.load_data in a new post-migration.py. - hr_recruitment, event: revert whitespace-only edits to noupdate_changes.xml. - hr_fleet: delete_records_safely_by_xml_id in pre-migration for the 5 orphan ir.rule + ir.ui.view xmlids; work file annotation updated. --- .../scripts/hr_fleet/19.0.1.0/pre-migration.py | 14 ++++++++++++++ .../hr_fleet/19.0.1.0/upgrade_analysis_work.txt | 3 +-- .../hr_presence/19.0.1.0/noupdate_changes.xml | 2 -- .../scripts/hr_presence/19.0.1.0/post-migration.py | 6 ++++++ .../hr_presence/19.0.1.0/upgrade_analysis_work.txt | 3 ++- .../19.0.1.0/noupdate_changes.xml | 2 -- .../19.0.1.0/post-migration.py | 6 ++++++ 7 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py create mode 100644 openupgrade_scripts/scripts/hr_presence/19.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/post-migration.py 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..336bb7bd2a94 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_fleet/19.0.1.0/pre-migration.py @@ -0,0 +1,14 @@ +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", + "hr_fleet.res_users_view_form_preferences", +] + + +@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 index 28688ce8953f..d6e8909ec312 100644 --- 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 @@ -8,5 +8,4 @@ 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 - -# NOTHING TO DO +# DONE: delete_records_safely_by_xml_id in pre-migration. diff --git a/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml index 7602978c1ec9..9be71c78cc3f 100644 --- a/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/hr_presence/19.0.1.0/noupdate_changes.xml @@ -1,9 +1,7 @@ - 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 index c8cb4444324a..cbd949dde7b7 100644 --- 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 @@ -4,5 +4,6 @@ ---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. -# NOTHING TO DO +# DONE: noupdate_changes.xml loaded in post-migration. diff --git a/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml index fdd9df2f54fe..ac6715320ddf 100644 --- a/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/hr_recruitment_survey/19.0.1.0/noupdate_changes.xml @@ -1,6 +1,5 @@ - 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..069ca7667e97 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_recruitment_survey/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_recruitment_survey", "19.0.1.0/noupdate_changes.xml") From fe3c39211b8f7e4c610b0b1d787006476978bf4a Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Wed, 10 Jun 2026 20:02:45 -0400 Subject: [PATCH 7/8] [FIX] hr_skills_slides: remap course lines to course_type='elearning' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without it historical eLearning training lines get hr_skills' 'external' default — miscategorized in the new views, and channel_id (now computed from course_type) is wiped on the next write. Also drop the redundant non-noupdate view xmlid from hr_fleet's delete list. --- .../hr_fleet/19.0.1.0/pre-migration.py | 1 - .../19.0.1.0/pre-migration.py | 21 +++++++++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 openupgrade_scripts/scripts/hr_skills_slides/19.0.1.0/pre-migration.py 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 index 336bb7bd2a94..4ed3afba1102 100644 --- 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 @@ -5,7 +5,6 @@ "hr_fleet.fleet_rule_odometer_visibility_user", "hr_fleet.fleet_rule_service_visibility_user", "hr_fleet.fleet_rule_vehicle_visibility_user", - "hr_fleet.res_users_view_form_preferences", ] 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 index e7b89b81c907..234fa5cbc1c6 100644 --- 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 @@ -8,7 +8,7 @@ hr_skills_slides / hr.resume.line / course_url (char) : no 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 +# 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] From 8db67c90e1dec67f8249c7bcc0af2186d39540e6 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Tue, 16 Jun 2026 08:16:00 -0400 Subject: [PATCH 8/8] [FIX] hr_recruitment_survey: drop stale translations on reloaded mail.template Signed-off-by: Don Kendall --- .../hr_recruitment_survey/19.0.1.0/post-migration.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 index 069ca7667e97..04912bf6501e 100644 --- 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 @@ -4,3 +4,10 @@ @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", + ], + )