mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +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)
|
make_website_item(template_item)
|
||||||
|
|
||||||
def validate_website_image(self):
|
def validate_website_image(self):
|
||||||
|
"""Validate if the website image is a public file"""
|
||||||
|
|
||||||
if frappe.flags.in_import:
|
if frappe.flags.in_import:
|
||||||
return
|
return
|
||||||
|
|
||||||
"""Validate if the website image is a public file"""
|
|
||||||
auto_set_website_image = False
|
auto_set_website_image = False
|
||||||
if not self.website_image and self.image:
|
if not self.website_image and self.image:
|
||||||
auto_set_website_image = True
|
auto_set_website_image = True
|
||||||
@@ -532,4 +533,4 @@ def make_website_item(doc, save=True):
|
|||||||
# Add to search cache
|
# Add to search cache
|
||||||
insert_item_to_index(website_item)
|
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