From d3654e36cc45b822738a75477d6c17ab62d050ec Mon Sep 17 00:00:00 2001 From: sang250399 Date: Tue, 14 Jun 2022 14:06:11 +0700 Subject: [PATCH] [MIG] portal: migration script --- docsource/modules140-150.rst | 2 +- .../scripts/portal/15.0.1.0/post-migration.py | 13 +++++++++++++ .../portal/15.0.1.0/upgrade_analysis_work.txt | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/portal/15.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/portal/15.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules140-150.rst b/docsource/modules140-150.rst index 31b960c52afc..fdc6c2bd9b72 100644 --- a/docsource/modules140-150.rst +++ b/docsource/modules140-150.rst @@ -520,7 +520,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | point_of_sale | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| portal | | | +| portal | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | portal_rating | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/portal/15.0.1.0/post-migration.py b/openupgrade_scripts/scripts/portal/15.0.1.0/post-migration.py new file mode 100644 index 000000000000..81c96141a0b3 --- /dev/null +++ b/openupgrade_scripts/scripts/portal/15.0.1.0/post-migration.py @@ -0,0 +1,13 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "portal", "15.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "portal", + [ + "mail_template_data_portal_welcome", + ], + ) diff --git a/openupgrade_scripts/scripts/portal/15.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/portal/15.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..031d43642bed --- /dev/null +++ b/openupgrade_scripts/scripts/portal/15.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,13 @@ +---Models in module 'portal'--- +---Fields in module 'portal'--- +portal / adyen.account / website_message_ids (one2many): DEL relation: mail.message +portal / crm.team.member / website_message_ids (one2many): NEW relation: mail.message +# NOTHING TO DO + +---XML records in module 'portal'--- +NEW ir.actions.server: portal.partner_wizard_action_create_and_open +DEL ir.ui.view: portal._assets_frontend_helpers +DEL ir.ui.view: portal._assets_primary_variables +DEL ir.ui.view: portal.assets_frontend +DEL ir.ui.view: portal.assets_tests +# NOTHING TO DO