From a911ddd2b7247935e5c796fe7031729521de48a0 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 7 Jul 2026 06:54:54 +0200 Subject: [PATCH 1/2] [MIG] sms --- docsource/modules180-190.rst | 2 +- .../noupdate_changes-transformation.xml | 9 ++++++ .../scripts/sms/19.0.3.0/post-migration.py | 24 ++++++++++++++++ .../sms/19.0.3.0/upgrade_analysis_work.txt | 28 +++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/sms/19.0.3.0/noupdate_changes-transformation.xml create mode 100644 openupgrade_scripts/scripts/sms/19.0.3.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/sms/19.0.3.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index e39f15e64155..6f24776dd0bd 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -1046,7 +1046,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | sales_team |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| sms | | | +| sms |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | sms_twilio | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/sms/19.0.3.0/noupdate_changes-transformation.xml b/openupgrade_scripts/scripts/sms/19.0.3.0/noupdate_changes-transformation.xml new file mode 100644 index 000000000000..b18a65d48e67 --- /dev/null +++ b/openupgrade_scripts/scripts/sms/19.0.3.0/noupdate_changes-transformation.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/openupgrade_scripts/scripts/sms/19.0.3.0/post-migration.py b/openupgrade_scripts/scripts/sms/19.0.3.0/post-migration.py new file mode 100644 index 000000000000..94be488e14ab --- /dev/null +++ b/openupgrade_scripts/scripts/sms/19.0.3.0/post-migration.py @@ -0,0 +1,24 @@ +# Copyright 2026 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +def adjust_cron_interval(env): + """ + If the sms cron has been left at default settings, use new default + """ + cron = env.ref("sms.ir_cron_sms_scheduler_action") + if cron and cron.interval_number == 1 and cron.interval_type == "hours": + cron.interval_number = 24 + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env, + "sms", + "19.0.3.0/noupdate_changes.xml", + xml_transformation_filename="19.0.3.0/noupdate_changes-transformation.xml", + ) + adjust_cron_interval(env) diff --git a/openupgrade_scripts/scripts/sms/19.0.3.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/sms/19.0.3.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..67976537362d --- /dev/null +++ b/openupgrade_scripts/scripts/sms/19.0.3.0/upgrade_analysis_work.txt @@ -0,0 +1,28 @@ +---Models in module 'sms'--- +obsolete model sms.resend [transient] +obsolete model sms.resend.recipient [transient] +# NOTHING TO DO: transient models + +---Fields in module 'sms'--- +sms / ir.actions.server / state (False) : selection_keys added: [object_copy] (most likely nothing to do) +sms / mail.message / message_type (False) : selection_keys added: [out_of_office] (most likely nothing to do) +sms / mail.notification / failure_type (False) : selection_keys added: [mail_bl, mail_dup, mail_optout, mail_spam] (most likely nothing to do) +# NOTHING TO DO: those aren't added by sms + +sms / res.partner / phone_blacklisted (boolean) : module is now 'phone_validation' ('sms') +sms / res.partner / phone_mobile_search (char) : module is now 'phone_validation' ('sms') +sms / res.partner / phone_sanitized (char) : module is now 'phone_validation' ('sms') +sms / res.partner / phone_sanitized_blacklisted (boolean): module is now 'phone_validation' ('sms') +sms / res.users / phone_blacklisted (boolean) : module is now 'phone_validation' ('sms') +sms / res.users / phone_mobile_search (char) : module is now 'phone_validation' ('sms') +sms / res.users / phone_sanitized (char) : module is now 'phone_validation' ('sms') +sms / res.users / phone_sanitized_blacklisted (boolean): module is now 'phone_validation' ('sms') +# NOTHING TO DO: sms depends on phone_validation + +---XML records in module 'sms'--- +DEL ir.actions.act_window: sms.sms_resend_action +DEL ir.model.access: sms.access_sms_resend +DEL ir.model.access: sms.access_sms_resend_recipient +DEL ir.ui.view: sms.mail_resend_message_view_form +DEL ir.ui.view: sms.res_partner_view_search +# NOTHING TO DO From ddfdda7601fdf2e8883a6aa81b848830226bd00b Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 7 Jul 2026 06:58:56 +0200 Subject: [PATCH 2/2] [MIG] iap_mail --- docsource/modules180-190.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 6f24776dd0bd..d729f1f9625b 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -236,7 +236,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | iap_crm | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| iap_mail | |No DB layout changes. | +| iap_mail |Nothing to do |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | im_livechat | | | +---------------------------------------------------+----------------------+-------------------------------------------------+