From f39d0cf0d13951d06d513a039e8f0456a5f5d4c7 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Mon, 13 Jul 2026 10:57:12 -0500 Subject: [PATCH] [OU-ADD] website_event_sale: Migration scripts --- docsource/modules180-190.rst | 2 +- .../website_event_sale/19.0.1.0/post-migration.py | 12 ++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 8 ++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/website_event_sale/19.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/website_event_sale/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 9707ec897c4a..3a401eb55133 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -1164,7 +1164,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | |del| website_event_meet_quiz | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| website_event_sale | | | +| website_event_sale |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | website_event_track | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/post-migration.py b/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/post-migration.py new file mode 100644 index 000000000000..333aafe70edf --- /dev/null +++ b/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/post-migration.py @@ -0,0 +1,12 @@ +# Copyright 2026 Tecnativa - Carlos Lopez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id( + env, + ["website_event_sale.event_product_template_public"], + ) diff --git a/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..759f889fd3d8 --- /dev/null +++ b/openupgrade_scripts/scripts/website_event_sale/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'website_event_sale'--- +---Fields in module 'website_event_sale'--- +---XML records in module 'website_event_sale'--- +DEL ir.rule: website_event_sale.event_product_template_public (noupdate) +# DONE: deleted in post-migration + +DEL ir.ui.view: website_event_sale.cart_lines_inherit_website_event_sale +# NOTHING TO DO: Handled by ORM