Skip to content

Commit 31c745c

Browse files
committed
[OU_ADD] website_sale_product_description: rename field from public_description to website_description
1 parent 5f12f8d commit 31c745c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ def migrate(env, version):
1515
openupgrade.logged_query(
1616
env.cr, "UPDATE product_ribbon SET text_color='' WHERE text_color IS NULL"
1717
)
18+
openupgrade.rename_fields(
19+
env,
20+
[
21+
(
22+
"product.templte",
23+
"product_template",
24+
"public_description",
25+
"website_description",
26+
)
27+
],
28+
)

0 commit comments

Comments
 (0)