From 8bb9dc5be8f2eaf31804fdf82103b84a7e94481c Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Thu, 28 May 2026 17:45:58 -0400 Subject: [PATCH] [OU-ADD] account_peppol: rename transient wizard model + table --- docsource/modules180-190.rst | 2 +- .../account_peppol/19.0.1.2/pre-migration.py | 10 ++++++ .../19.0.1.2/upgrade_analysis_work.txt | 36 +++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py create mode 100644 openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index e7f797ce0766..f621fcab35bb 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -24,7 +24,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_payment |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| account_peppol | | | +| account_peppol |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |new| account_peppol_advanced_fields | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py new file mode 100644 index 000000000000..1eddffcc8065 --- /dev/null +++ b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py @@ -0,0 +1,10 @@ +from openupgradelib import openupgrade + +_renamed_models = [("account_peppol.service.wizard", "peppol.config.wizard")] +_renamed_tables = [("account_peppol_service_wizard", "peppol_config_wizard")] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_models(env.cr, _renamed_models) + openupgrade.rename_tables(env.cr, _renamed_tables) diff --git a/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt new file mode 100644 index 000000000000..79e7b7f89378 --- /dev/null +++ b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt @@ -0,0 +1,36 @@ +---Models in module 'account_peppol'--- +obsolete model account_peppol.service.wizard (renamed to peppol.config.wizard) [transient] +new model peppol.config.wizard (renamed from account_peppol.service.wizard) [transient] + +# DONE: pre-migration: rename_models + rename_tables (transient wizard) + +---Fields in module 'account_peppol'--- +account_peppol / account_edi_proxy_client.user / peppol_verification_code (char): DEL +account_peppol / res.company / account_peppol_proxy_state (selection): selection_keys removed: [in_verification] +account_peppol / res.company / peppol_activate_self_billing_sending (boolean): NEW +account_peppol / res.company / peppol_external_provider (char): NEW +account_peppol / res.company / peppol_metadata (json) : NEW +account_peppol / res.company / peppol_metadata_updated_at (datetime): NEW +account_peppol / res.company / peppol_self_billing_reception_journal_id (many2one): NEW relation: account.journal, isfunction: function, stored +account_peppol_selfbilling / account.journal / is_self_billing (boolean) : module is now 'account' ('account_peppol_selfbilling') + +# NOTHING TO DO + +---XML records in module 'account_peppol'--- +NEW ir.actions.client: account_peppol.action_peppol_auth_callback +NEW ir.cron: account_peppol.ir_cron_peppol_webhook_keepalive +NEW ir.model.access: account_peppol.access_peppol_config_wizard +DEL ir.model.access: account_peppol.account_peppol_service_wizard_system +NEW ir.ui.view: account_peppol.peppol_config_wizard_form +NEW ir.ui.view: account_peppol.portal_my_details +DEL ir.ui.view: account_peppol.account_journal_dashboard_kanban_view +DEL ir.ui.view: account_peppol.peppol_service_configuration +DEL ir.ui.view: account_peppol.portal_my_details_fields +DEL ir.ui.view: account_peppol_selfbilling.account_move_form_inherit_self_billing +DEL ir.ui.view: account_peppol_selfbilling.report_invoice_document +DEL ir.ui.view: account_peppol_selfbilling.view_account_journal_form_inherited +NEW mail.template: account_peppol.mail_template_peppol_registration +DEL mail.template: account_peppol_selfbilling.email_template_edi_self_billing_credit_note [renamed to account module] (noupdate) +DEL mail.template: account_peppol_selfbilling.email_template_edi_self_billing_invoice [renamed to account module] (noupdate) + +# NOTHING TO DO