mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
removed product param in get_product_list
This commit is contained in:
@@ -28,9 +28,7 @@ def get_product_info(item_code):
|
|||||||
}
|
}
|
||||||
|
|
||||||
@webnotes.whitelist(allow_guest=True)
|
@webnotes.whitelist(allow_guest=True)
|
||||||
def get_product_list(search=None, product_group=None, start=0, limit=10):
|
def get_product_list(search=None, start=0, limit=10):
|
||||||
# DOUBT: why is product_group param passed?
|
|
||||||
|
|
||||||
# base query
|
# base query
|
||||||
query = """select name, item_name, page_name, website_image, item_group,
|
query = """select name, item_name, page_name, website_image, item_group,
|
||||||
web_long_description as website_description
|
web_long_description as website_description
|
||||||
@@ -47,7 +45,6 @@ def get_product_list(search=None, product_group=None, start=0, limit=10):
|
|||||||
|
|
||||||
data = webnotes.conn.sql(query, {
|
data = webnotes.conn.sql(query, {
|
||||||
"search": search,
|
"search": search,
|
||||||
"product_group": product_group
|
|
||||||
}, as_dict=1)
|
}, as_dict=1)
|
||||||
|
|
||||||
return [get_item_for_list_in_html(r) for r in data]
|
return [get_item_for_list_in_html(r) for r in data]
|
||||||
|
|||||||
Reference in New Issue
Block a user