From a03ddbc0f9283277fc5a0cfc031c966c11d8e714 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Wed, 20 May 2026 20:59:23 -0400 Subject: [PATCH 1/2] [MIG] auth_*: submodule annotations + noupdate reloads --- docsource/modules180-190.rst | 6 ++--- .../auth_passkey/19.0.1.1/post-migration.py | 6 +++++ .../19.0.1.1/upgrade_analysis_work.txt | 15 +++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 9 ++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 22 +++++++++++++++++++ 5 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 openupgrade_scripts/scripts/auth_passkey/19.0.1.1/post-migration.py create mode 100644 openupgrade_scripts/scripts/auth_passkey/19.0.1.1/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/auth_passkey_portal/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/auth_timeout/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 710b30ca4e96..190d76f7108b 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -46,9 +46,9 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_oauth |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| auth_passkey | | | +| auth_passkey |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| auth_passkey_portal | | | +| |new| auth_passkey_portal |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_password_policy |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -58,7 +58,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_signup |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |new| auth_timeout | | | +| |new| auth_timeout |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | auth_totp |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/post-migration.py b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/post-migration.py new file mode 100644 index 000000000000..d2db4964b980 --- /dev/null +++ b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "auth_passkey", "19.0.1.1/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..e08c9cac3cf7 --- /dev/null +++ b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,15 @@ +---Models in module 'auth_passkey'--- + + +---Fields in module 'auth_passkey'--- + +---XML records in module 'auth_passkey'--- +NEW ir.model.access: auth_passkey.access_auth_passkey_key_create_portal +NEW ir.model.access: auth_passkey.access_auth_passkey_key_portal +ir.rule: auth_passkey.rule_auth_passkey_key_admin (noupdate) (noupdate switched) +NEW ir.rule: auth_passkey.rule_auth_passkey_key_create_portal (noupdate) +ir.rule: auth_passkey.rule_auth_passkey_key_user (noupdate) (noupdate switched) +NEW ir.ui.view: auth_passkey.auth_passkey_key_view_kanban +NEW ir.ui.view: auth_passkey.auth_passkey_login_oauth + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/auth_passkey_portal/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/auth_passkey_portal/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..eed421107d7b --- /dev/null +++ b/openupgrade_scripts/scripts/auth_passkey_portal/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'auth_passkey_portal'--- + + +---Fields in module 'auth_passkey_portal'--- + +---XML records in module 'auth_passkey_portal'--- +NEW ir.ui.view: auth_passkey_portal.passkeys_portal_hook + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/auth_timeout/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/auth_timeout/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..9dbd49b587c5 --- /dev/null +++ b/openupgrade_scripts/scripts/auth_timeout/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,22 @@ +---Models in module 'auth_timeout'--- + + +---Fields in module 'auth_timeout'--- +auth_timeout / res.groups / has_lock_timeout (boolean) : NEW hasdefault: compute, stored: False +auth_timeout / res.groups / has_lock_timeout_inactivity (boolean): NEW hasdefault: compute, stored: False +auth_timeout / res.groups / lock_timeout (integer) : NEW +auth_timeout / res.groups / lock_timeout_delay_in_unit (integer): NEW hasdefault: compute, stored: False +auth_timeout / res.groups / lock_timeout_delay_unit (selection): NEW selection_keys: ['days', 'hours', 'minutes'], hasdefault: compute, stored: False +auth_timeout / res.groups / lock_timeout_inactivity (integer): NEW +auth_timeout / res.groups / lock_timeout_inactivity_delay_in_unit (integer): NEW hasdefault: compute, stored: False +auth_timeout / res.groups / lock_timeout_inactivity_delay_unit (selection): NEW selection_keys: ['days', 'hours', 'minutes'], hasdefault: compute, stored: False +auth_timeout / res.groups / lock_timeout_inactivity_mfa (boolean): NEW +auth_timeout / res.groups / lock_timeout_mfa (boolean) : NEW + +# NOTHING TO DO + +---XML records in module 'auth_timeout'--- +NEW ir.ui.view: auth_timeout.auth_passkey_groups_form +NEW ir.ui.view: auth_timeout.check_identity + +# NOTHING TO DO From eb37a79660fada8ba06804835a2819ede40335e9 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Thu, 11 Jun 2026 07:53:22 -0400 Subject: [PATCH 2/2] [FIX] auth_passkey: drop generator perm-flags from the noupdate reload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The analyzer emitted perm_read/write/create/unlink=False for the user rule; ir.rule's CHECK requires at least one perm True, so loading it crashed the post-migration on any DB with auth_passkey. The perms were never meant to change (18 and fresh-19 both have all four True) — only the groups change (portal+user) is real. --- .../scripts/auth_passkey/19.0.1.1/noupdate_changes.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/noupdate_changes.xml b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/noupdate_changes.xml index abb43224e342..c42dfdf7438c 100644 --- a/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/auth_passkey/19.0.1.1/noupdate_changes.xml @@ -1,10 +1,9 @@ - - - - - +