forked from tvtma/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OU-ADD] website_sale_slides: mig to 16.0
- Loading branch information
1 parent
abfeb87
commit 5cca6df
Showing
3 changed files
with
35 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
16 changes: 16 additions & 0 deletions
16
openupgrade_scripts/scripts/website_sale_slides/16.0.1.0/pre-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,16 @@ | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
# update detailed_type of the course product | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
UPDATE product_template pt | ||
SET detailed_type = 'course' | ||
FROM product_product pp | ||
JOIN slide_channel sc ON sc.product_id = pp.id | ||
WHERE pt.id = pp.product_tmpl_id | ||
""", | ||
) |
18 changes: 18 additions & 0 deletions
18
openupgrade_scripts/scripts/website_sale_slides/16.0.1.0/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,18 @@ | ||
---Models in module 'website_sale_slides'--- | ||
---Fields in module 'website_sale_slides'--- | ||
website_sale_slides / product.template / detailed_type (False) : previously in module gift_card | ||
# DONE: pre-migration: converted detailed_type = 'course' | ||
|
||
---XML records in module 'website_sale_slides'--- | ||
NEW ir.ui.view: website_sale_slides.cart_summary_inherit_website_sale_slides | ||
NEW ir.ui.view: website_sale_slides.course_join | ||
NEW ir.ui.view: website_sale_slides.course_main | ||
NEW ir.ui.view: website_sale_slides.course_purchased_confirmation_message | ||
NEW ir.ui.view: website_sale_slides.slide_channel_view_form_add_inherit_sale_slides | ||
NEW ir.ui.view: website_sale_slides.slide_channel_view_tree_report | ||
NEW ir.ui.view: website_sale_slides.snippet_options | ||
NEW ir.ui.view: website_sale_slides.website_sale_confirmation_slide | ||
DEL ir.ui.view: website_sale_slides.course_sidebar | ||
NEW product.category: website_sale_slides.product_category_courses | ||
NEW product.product: website_sale_slides.default_product_course | ||
# NOTHING TO DO |