From e131d5e7826f9943ad8a6eecab7a3b7d4c037ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Wed, 29 Jul 2026 11:19:00 +0200 Subject: [PATCH] [FIX] calendar: finish migration --- .../calendar/19.0.1.1/pre-migration.py | 19 +++++++++++++++++ .../19.0.1.1/upgrade_analysis_work.txt | 21 +++++++++++++++++++ .../19.0.1.1/upgrade_analysis_work.txt | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/calendar/19.0.1.1/pre-migration.py create mode 100644 openupgrade_scripts/scripts/calendar/19.0.1.1/upgrade_analysis_work.txt diff --git a/openupgrade_scripts/scripts/calendar/19.0.1.1/pre-migration.py b/openupgrade_scripts/scripts/calendar/19.0.1.1/pre-migration.py new file mode 100644 index 000000000000..f0805582f86a --- /dev/null +++ b/openupgrade_scripts/scripts/calendar/19.0.1.1/pre-migration.py @@ -0,0 +1,19 @@ +# Copyright 2026 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_fields( + env, + [ + ( + "calendar.alarm", + "calendar_alarm", + "sms_notify_responsible", + "notify_responsible", + ) + ], + ) diff --git a/openupgrade_scripts/scripts/calendar/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/calendar/19.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..7d74e60462e5 --- /dev/null +++ b/openupgrade_scripts/scripts/calendar/19.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,21 @@ +---Models in module 'calendar'--- +---Fields in module 'calendar'--- +calendar / calendar.alarm / notify_responsible (boolean) : NEW hasdefault: default +# DONE: pre-migration: renamed from sms_notify_responsible (from calendar_sms) + +calendar / calendar.event / notes (html) : NEW +# NOTHING TO DO: new feature + +calendar / calendar.event / unavailable_partner_ids (many2many): previously in module hr_calendar +# NOTHING TO DO: nothing changed in the field + +calendar / discuss.channel / calendar_event_ids (one2many) : NEW relation: calendar.event +# NOTHING TO DO: one2many + +---XML records in module 'calendar'--- +NEW ir.actions.act_window: calendar.action_event_delete_wizard +NEW ir.config_parameter: calendar.default_privacy (noupdate) +NEW ir.ui.view: calendar.view_event_delete_wizard_form +DEL ir.ui.view: calendar.res_partner_kanban_view +NEW mail.template: calendar.calendar_template_delete_event (noupdate) +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/calendar_sms/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/calendar_sms/19.0.1.1/upgrade_analysis_work.txt index fa9656e5a553..335288096755 100644 --- a/openupgrade_scripts/scripts/calendar_sms/19.0.1.1/upgrade_analysis_work.txt +++ b/openupgrade_scripts/scripts/calendar_sms/19.0.1.1/upgrade_analysis_work.txt @@ -3,7 +3,7 @@ ---Fields in module 'calendar_sms'--- calendar_sms / calendar.alarm / sms_notify_responsible (boolean): DEL -# NOTHING TO DO +# NOTHING TO DO: renamed to notify_responsible in calendar module ---XML records in module 'calendar_sms'---