From 1f0dd1d4b4c102df527f5373152e04de6f556914 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 19 Dec 2023 13:13:13 +0100 Subject: [PATCH] [OU-ADD] calendar_sms module. --- docsource/modules150-160.rst | 2 +- .../scripts/calendar_sms/16.0.1.1/pre-migration.py | 8 ++++++++ .../calendar_sms/16.0.1.1/upgrade_analysis_work.txt | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/calendar_sms/16.0.1.1/pre-migration.py create mode 100644 openupgrade_scripts/scripts/calendar_sms/16.0.1.1/upgrade_analysis_work.txt diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index 75e498f7c66d..641625e572dc 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -96,7 +96,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | calendar | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| calendar_sms | | | +| calendar_sms | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | contacts | Nothing to do |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/pre-migration.py b/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/pre-migration.py new file mode 100644 index 000000000000..4b67deb53c1c --- /dev/null +++ b/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/pre-migration.py @@ -0,0 +1,8 @@ +from openupgradelib import openupgrade + +_xmlids_delete = ["calendar_sms.ir_rule_sms_template_system"] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id(env, _xmlids_delete) diff --git a/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..ac5733cde4c4 --- /dev/null +++ b/openupgrade_scripts/scripts/calendar_sms/16.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,5 @@ +---Models in module 'calendar_sms'--- +---Fields in module 'calendar_sms'--- +---XML records in module 'calendar_sms'--- +DEL ir.rule: calendar_sms.ir_rule_sms_template_system +Done: Delete safely in pre-migration script.