Skip to content

Commit 91f69f9

Browse files
committed
[OU_ADD] website_sale_product_description: rename field from public_description to description_ecommerce
1 parent 5f12f8d commit 91f69f9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

openupgrade_scripts/apriori.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
# OCA/e-commerce
7474
"website_sale_product_attachment": "website_sale",
7575
"website_sale_product_attribute_filter_collapse": "website_sale",
76+
"website_sale_product_description": "website_sale",
7677
# OCA/hr-attendance
7778
"hr_attendance_autoclose": "hr_attendance",
7879
# OCA/knowledge

openupgrade_scripts/scripts/website_sale/18.0.1.1/pre-migration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ def migrate(env, version):
1515
openupgrade.logged_query(
1616
env.cr, "UPDATE product_ribbon SET text_color='' WHERE text_color IS NULL"
1717
)
18+
if openupgrade.column_exists(env.cr, "product_template", "public_description"):
19+
openupgrade.logged_query(
20+
env.cr,
21+
"UPDATE product_template SET description_ecommerce=public_description",
22+
)

0 commit comments

Comments
 (0)