diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 00398d4dccc8..03376a258df1 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -62,9 +62,9 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_totp | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| auth_totp_mail | | | +| auth_totp_mail |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |del| auth_totp_mail_enforce | | | +| |del| auth_totp_mail_enforce | |Merged into auth_totp_mail | +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_totp_portal | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/post-migration.py b/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/post-migration.py new file mode 100644 index 000000000000..ec9265c7f1ea --- /dev/null +++ b/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/post-migration.py @@ -0,0 +1,16 @@ +# Copyright 2026 Tecnativa - Carlos Lopez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "auth_totp_mail", "19.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "auth_totp_mail", + ["mail_template_totp_invite", "mail_template_totp_mail_code"], + ["body_html"], + ) diff --git a/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..bffc5e02045b --- /dev/null +++ b/openupgrade_scripts/scripts/auth_totp_mail/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,18 @@ +---Models in module 'auth_totp_mail'--- +model auth.totp.rate.limit.log (moved to auth_totp) [transient] +# NOTHING TO DO: this is a transient model that was simply moved from another module. + +---Fields in module 'auth_totp_mail'--- +---XML records in module 'auth_totp_mail'--- +DEL ir.model.access: auth_totp_mail_enforce.access_auth_totp_rate_limit_log [renamed to auth_totp module] +NEW ir.ui.view: auth_totp_mail.account_security_alert +NEW ir.ui.view: auth_totp_mail.auth_totp_mail_form +NEW ir.ui.view: auth_totp_mail.res_config_settings_view_form +DEL ir.ui.view: auth_totp_mail.account_security_setting_update +DEL ir.ui.view: auth_totp_mail_enforce.auth_totp_mail_form +DEL ir.ui.view: auth_totp_mail_enforce.res_config_settings_view_form +# NOTHING TO DO: Handled by ORM + +NEW mail.template: auth_totp_mail.mail_template_totp_mail_code [renamed from auth_totp_mail_enforce module] (noupdate) +DEL mail.template: auth_totp_mail_enforce.mail_template_totp_mail_code [renamed to auth_totp_mail module] (noupdate) +# NOTHING TO DO: Handled in merged_modules