mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 20:18:27 +00:00
chore: correct docstring
[skip ci]
This commit is contained in:
committed by
Ankush Menat
parent
2768047c9b
commit
d270b320f1
@@ -106,10 +106,11 @@ class WebsiteItem(WebsiteGenerator):
|
||||
make_website_item(template_item)
|
||||
|
||||
def validate_website_image(self):
|
||||
"""Validate if the website image is a public file"""
|
||||
|
||||
if frappe.flags.in_import:
|
||||
return
|
||||
|
||||
"""Validate if the website image is a public file"""
|
||||
auto_set_website_image = False
|
||||
if not self.website_image and self.image:
|
||||
auto_set_website_image = True
|
||||
@@ -532,4 +533,4 @@ def make_website_item(doc, save=True):
|
||||
# Add to search cache
|
||||
insert_item_to_index(website_item)
|
||||
|
||||
return [website_item.name, website_item.web_item_name]
|
||||
return [website_item.name, website_item.web_item_name]
|
||||
|
||||
Reference in New Issue
Block a user