diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index a4f9edfb7b8b..953deda7903a 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -882,7 +882,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | |new| website_payment_paypal | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| website_profile | | | +| website_profile | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | website_sale | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/website_profile/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/website_profile/16.0.1.0/post-migration.py new file mode 100644 index 000000000000..e2e88d13559a --- /dev/null +++ b/openupgrade_scripts/scripts/website_profile/16.0.1.0/post-migration.py @@ -0,0 +1,24 @@ +# Copyright 2023 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + +_translations_to_delete = [ + "name", + "description", +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id( + env, + [ + "website_profile.gamification_karma_rank_access_website_publisher", + ], + ) + openupgrade.load_data( + env.cr, "website_profile", "migrations/16.0.1.0/noupdate_changes.xml" + ) + openupgrade.delete_record_translations( + env.cr, "website_profile", _translations_to_delete + ) diff --git a/openupgrade_scripts/scripts/website_profile/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/website_profile/16.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..54379fc2fbc9 --- /dev/null +++ b/openupgrade_scripts/scripts/website_profile/16.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,6 @@ +---Models in module 'website_profile'--- +---Fields in module 'website_profile'--- +---XML records in module 'website_profile'--- +NEW ir.model.access: website_profile.gamification_karma_rank_access_restricted_editor +DEL ir.model.access: website_profile.gamification_karma_rank_access_website_publisher +# DONE: post-migration (delete record)