Skip to content

Commit

Permalink
[OU-ADD] website_sale_slides: mig to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngochuy97hp authored and royle-vietnam committed Jul 20, 2023
1 parent abfeb87 commit 5cca6df
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale_product_configurator | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale_slides | | |
| website_sale_slides | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale_stock |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
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
""",
)
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

0 comments on commit 5cca6df

Please sign in to comment.