Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docsource/modules180-190.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -1046,7 +1046,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| sales_team |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| sms | | |
| sms |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| sms_twilio | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!--
don't overwrite interval number, that's done in code if default settings were kept
remove the whole node for the record because it's forcecreate and will fail if
the cron was deleted
-->
<record id="ir_cron_sms_scheduler_action" position="replace" />
</odoo>
24 changes: 24 additions & 0 deletions openupgrade_scripts/scripts/sms/19.0.3.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -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)
28 changes: 28 additions & 0 deletions openupgrade_scripts/scripts/sms/19.0.3.0/upgrade_analysis_work.txt
Original file line number Diff line number Diff line change
@@ -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
Loading