From 419b1cfae3fcb8dcea5242c3243c6c1c47821d66 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Fri, 26 Jun 2026 11:21:36 -0500 Subject: [PATCH] [OU-ADD] auth_oauth: Migration scripts --- docsource/modules180-190.rst | 2 +- .../auth_oauth/19.0.1.0/post-migration.py | 16 ++++++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 8 ++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/auth_oauth/19.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/auth_oauth/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index e6116249b48e..c959bf23a997 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -44,7 +44,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_ldap | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| auth_oauth | | | +| auth_oauth |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_passkey | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/auth_oauth/19.0.1.0/post-migration.py b/openupgrade_scripts/scripts/auth_oauth/19.0.1.0/post-migration.py new file mode 100644 index 000000000000..2968ad620b70 --- /dev/null +++ b/openupgrade_scripts/scripts/auth_oauth/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_oauth", "19.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "auth_oauth", + ["provider_facebook", "provider_google", "provider_openerp"], + ["body"], + ) diff --git a/openupgrade_scripts/scripts/auth_oauth/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/auth_oauth/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..d902478d7802 --- /dev/null +++ b/openupgrade_scripts/scripts/auth_oauth/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'auth_oauth'--- +---Fields in module 'auth_oauth'--- +---XML records in module 'auth_oauth'--- +DEL ir.ui.view: auth_oauth.login +DEL ir.ui.view: auth_oauth.reset_password +DEL ir.ui.view: auth_oauth.signup +DEL ir.ui.view: auth_oauth.view_users_form +# NOTHING TO DO: Handled by ORM