-
-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f8a1bd
commit 89af8b2
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
openupgrade_scripts/scripts/event/16.0.1.7/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2023 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
_column_drops = [ | ||
("event_event", "seats_available"), | ||
("event_event", "seats_reserved"), | ||
("event_event", "seats_unconfirmed"), | ||
("event_event", "seats_used"), | ||
("event_event_ticket", "seats_available"), | ||
("event_event_ticket", "seats_reserved"), | ||
("event_event_ticket", "seats_unconfirmed"), | ||
("event_event_ticket", "seats_used"), | ||
] | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.drop_columns(env.cr, _column_drops) |
36 changes: 36 additions & 0 deletions
36
openupgrade_scripts/scripts/event/16.0.1.7/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
---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 | ||
# Post-migration: remove the columns in event_event and event_event_ticket tables as fields were and are still readonly | ||
|
||
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 |