From f9252674c14302af4ad227965e144c97ff4ce9a3 Mon Sep 17 00:00:00 2001 From: mle Date: Tue, 14 Mar 2023 16:18:23 +0100 Subject: [PATCH] [OU-ADD] event --- docsource/modules150-160.rst | 2 +- .../scripts/event/16.0.1.7/post-migration.py | 16 ++++++++ .../event/16.0.1.7/upgrade_analysis_work.txt | 38 +++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/event/16.0.1.7/post-migration.py create mode 100644 openupgrade_scripts/scripts/event/16.0.1.7/upgrade_analysis_work.txt diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index 39d94a259dff..0984bb9f3e84 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -124,7 +124,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | digest | Done |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| event | | | +| event | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | event_booth | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/event/16.0.1.7/post-migration.py b/openupgrade_scripts/scripts/event/16.0.1.7/post-migration.py new file mode 100644 index 000000000000..3f15ee4d2163 --- /dev/null +++ b/openupgrade_scripts/scripts/event/16.0.1.7/post-migration.py @@ -0,0 +1,16 @@ +# Copyright 2023 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + +_translations_to_delete = [ + "event_registration_mail_template_badge", + "event_reminder", + "event_subscription", +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "event", "16.0.1.7/noupdate_changes.xml") + openupgrade.delete_record_translations(env.cr, "event", _translations_to_delete) diff --git a/openupgrade_scripts/scripts/event/16.0.1.7/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/event/16.0.1.7/upgrade_analysis_work.txt new file mode 100644 index 000000000000..12b78f0b05c4 --- /dev/null +++ b/openupgrade_scripts/scripts/event/16.0.1.7/upgrade_analysis_work.txt @@ -0,0 +1,38 @@ +---Models in module 'event'--- +---Fields in module 'event'--- +event / event.event / seats_available (integer) : not stored anymore +event / event.event / seats_reserved (integer) : not stored anymore +event / event.event / seats_unconfirmed (integer) : not stored anymore +event / event.event / seats_used (integer) : not stored anymore +event / event.event.ticket / seats_available (integer) : not stored anymore +event / event.event.ticket / seats_reserved (integer) : not stored anymore +event / event.event.ticket / seats_unconfirmed (integer) : not stored anymore +event / event.event.ticket / seats_used (integer) : not stored anymore +# NOTHING TO DO + +event / event.registration / date_open (datetime) : DEL +# NOTHING TO DO: obsolete feature + +event / event.tag / _order : _order is now 'category_sequence, sequence, id' ('sequence') +# NOTHING TO DO + +event / event.tag / category_sequence (integer) : NEW isrelated: related, stored +# NOTHING TO DO: new field + +---XML records in module 'event'--- +NEW ir.actions.act_window: event.event_registration_action_kanban +NEW ir.actions.act_window: event.event_registration_action_stats_from_event +# NOTHING TO DO + +DEL ir.actions.act_window: event.event_event_action_pivot +DEL ir.ui.menu: event.event_event_menu_pivot_report +# NOTHING TO DO: deleted by the ORM + +NEW ir.ui.view: event.event_registration_view_search_event_specific +# NOTHING TO DO + +DEL ir.ui.view: event.event_event_view_graph +DEL ir.ui.view: event.event_event_view_pivot +# NOTHING TO DO: deleted by the ORM + +# Done (post-migration): load noupdate_changes.xml and delete obsolete translations