-
-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by MiquelRForgeFlow
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
openupgrade_scripts/scripts/event_booth_sale/16.0.1.1/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,28 @@ | ||
# Copyright 2025 ForgeFlow S.L. (http://www.forgeflow.com) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
def fill_related_stored_fields(env): | ||
openupgrade.logged_query( | ||
env.cr, | ||
"""UPDATE event_booth eb | ||
SET price = ebc.price | ||
FROM event_booth_category ebc | ||
WHERE eb.booth_category_id = ebc.id | ||
""", | ||
) | ||
openupgrade.logged_query( | ||
env.cr, | ||
"""UPDATE event_type_booth etb | ||
SET price = ebc.price | ||
FROM event_booth_category ebc | ||
WHERE etb.booth_category_id = ebc.id | ||
""", | ||
) | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
fill_related_stored_fields(env) |
15 changes: 15 additions & 0 deletions
15
openupgrade_scripts/scripts/event_booth_sale/16.0.1.1/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,15 @@ | ||
---Models in module 'event_booth_sale'--- | ||
---Fields in module 'event_booth_sale'--- | ||
event_booth_sale / event.booth / price (float) : is now stored | ||
event_booth_sale / event.type.booth / price (float) : is now stored | ||
# DONE: post-migration: fill related stored fields | ||
|
||
event_booth_sale / product.template / detailed_type (False) : selection_keys is now '['consu', 'course', 'event', 'event_booth', 'product', 'service']' ('['consu', 'event', 'event_booth', 'gift', 'product', 'service']') | ||
# NOTHING TO DO | ||
|
||
---XML records in module 'event_booth_sale'--- | ||
NEW ir.ui.view: event_booth_sale.event_booth_view_graph | ||
NEW ir.ui.view: event_booth_sale.event_booth_view_pivot | ||
NEW ir.ui.view: event_booth_sale.event_booth_view_tree_from_event | ||
DEL ir.ui.view: event_booth_sale.event_booth_view_tree | ||
# NOTHING TO DO |