mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
[fix] variant selector display
This commit is contained in:
@@ -3,8 +3,8 @@ import frappe
|
||||
def execute():
|
||||
frappe.reload_doctype("File")
|
||||
frappe.reload_doctype("Item")
|
||||
for item in frappe.get_all("Item", fields=("name", "website_image")):
|
||||
if item.website_image:
|
||||
for item in frappe.get_all("Item", fields=("name", "website_image", "thumbnail")):
|
||||
if item.website_image and not item.thumbnail:
|
||||
item_doc = frappe.get_doc("Item", item.name)
|
||||
try:
|
||||
item_doc.make_thumbnail()
|
||||
|
||||
Reference in New Issue
Block a user