Skip to content

Commit

Permalink
fix: Website item patch fixes
Browse files Browse the repository at this point in the history
(cherry picked from commit cbfdbd8)
  • Loading branch information
deepeshgarg007 authored and mergify-bot committed Feb 3, 2022
1 parent 84c6db8 commit 8760ad0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/e_commerce/doctype/website_item/website_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def validate_website_image(self):
self.website_image = None

def make_thumbnail(self):
if frappe.flags.in_import:
if frappe.flags.in_import or frappe.flags.in_migrate:
return

"""Make a thumbnail of `website_image`"""
Expand Down
4 changes: 4 additions & 0 deletions erpnext/patches/v13_0/create_website_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

def execute():
frappe.reload_doc("e_commerce", "doctype", "website_item")
frappe.reload_doc("e_commerce", "doctype", "website_item_tabbed_section")
frappe.reload_doc("e_commerce", "doctype", "website_offer")
frappe.reload_doc("e_commerce", "doctype", "recommended_items")
frappe.reload_doc("e_commerce", "doctype", "e_commerce_settings")
frappe.reload_doc("stock", "doctype", "item")

item_fields = ["item_code", "item_name", "item_group", "stock_uom", "brand", "image",
Expand Down

0 comments on commit 8760ad0

Please sign in to comment.