From af617824ed0b6379e667ce465d3098c143ef8fe3 Mon Sep 17 00:00:00 2001 From: haumenphai Date: Mon, 20 May 2024 13:38:19 +0700 Subject: [PATCH] [OU-ADD] calendar: migrate to 17.0 --- docsource/modules160-170.rst | 2 +- .../calendar/17.0.1.1/post-migration.py | 9 ++++++ .../17.0.1.1/upgrade_analysis_work.txt | 30 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/calendar/17.0.1.1/post-migration.py create mode 100644 openupgrade_scripts/scripts/calendar/17.0.1.1/upgrade_analysis_work.txt diff --git a/docsource/modules160-170.rst b/docsource/modules160-170.rst index 656302539dd2..98e6778dc37d 100644 --- a/docsource/modules160-170.rst +++ b/docsource/modules160-170.rst @@ -96,7 +96,7 @@ Module coverage 16.0 -> 17.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | bus | Nothing to do |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| calendar | | | +| calendar | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | calendar_sms | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/calendar/17.0.1.1/post-migration.py b/openupgrade_scripts/scripts/calendar/17.0.1.1/post-migration.py new file mode 100644 index 000000000000..543da1f88420 --- /dev/null +++ b/openupgrade_scripts/scripts/calendar/17.0.1.1/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "calendar", "17.0.1.1/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/calendar/17.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/calendar/17.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..feda9ffcea22 --- /dev/null +++ b/openupgrade_scripts/scripts/calendar/17.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,30 @@ +---Models in module 'calendar'--- +new model calendar.popover.delete.wizard [transient] +# NOTHING TO DO + +---Fields in module 'calendar'--- +calendar / calendar.event / message_main_attachment_id (many2one): DEL relation: ir.attachment +# NOTHING TO DO + +calendar / calendar.event / rrule_type_ui (selection) : NEW selection_keys: ['custom', 'daily', 'monthly', 'weekly', 'yearly'], hasdefault: compute +# NOTHING TO DO: new field, compute non-store + +calendar / calendar.event / videocall_channel_id (many2one): relation is now 'discuss.channel' ('mail.channel') [nothing to do] +calendar / calendar.recurrence / trigger_id (many2one) : NEW relation: ir.cron.trigger +# NOTHING TO DO + +---XML records in module 'calendar'--- +NEW ir.actions.act_window: calendar.action_view_start_calendar_sync +NEW ir.actions.act_window: calendar.calendar_settings_action +NEW ir.model.access: calendar.access_calendar_attendee_employee_delete_wizard +# NOTHING TO DO + +NEW ir.ui.menu: calendar.calendar_event_menu +NEW ir.ui.menu: calendar.menu_calendar_settings +NEW ir.ui.view: calendar.calendar_popover_delete_view +NEW ir.ui.view: calendar.mail_activity_schedule_view_form +NEW ir.ui.view: calendar.res_config_settings_view_form +NEW ir.ui.view: calendar.view_calendar_event_form_quick_create +NEW onboarding.onboarding: calendar.onboarding_onboarding_calendar (noupdate) +NEW onboarding.onboarding.step: calendar.onboarding_onboarding_step_setup_calendar_integration (noupdate) +# NOTHING TO DO