From f50e18e84c16f3e299f314347b49582a09eac086 Mon Sep 17 00:00:00 2001 From: mle Date: Wed, 15 Mar 2023 10:21:51 +0100 Subject: [PATCH] [OU-ADD] portal --- docsource/modules150-160.rst | 2 +- .../scripts/portal/16.0.1.0/post-migration.py | 9 +++++++++ .../scripts/portal/16.0.1.0/upgrade_analysis_work.txt | 10 ++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/portal/16.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/portal/16.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index ff8fcc6ac56e..fac922d8578a 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -582,7 +582,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | point_of_sale | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| portal | | | +| portal | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | portal_rating | |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/portal/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/portal/16.0.1.0/post-migration.py new file mode 100644 index 000000000000..7c772f48435b --- /dev/null +++ b/openupgrade_scripts/scripts/portal/16.0.1.0/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2023 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "portal", "16.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/portal/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/portal/16.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..8240d0966609 --- /dev/null +++ b/openupgrade_scripts/scripts/portal/16.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,10 @@ +---Models in module 'portal'--- +---Fields in module 'portal'--- +portal / loyalty.card / website_message_ids (one2many): NEW relation: mail.message +# Nothing to do: loyalty is a new addon, and loyalty.card is a new model inheriting from mail.thread + +---XML records in module 'portal'--- +NEW ir.ui.view: portal.portal_my_details_fields +# NOTHING TO DO + +# Done (post-migration): load data from noupdate_changes.xml \ No newline at end of file