Update queries.py

This commit is contained in:
rohitwaghchaure
2019-11-19 19:26:31 +05:30
committed by Saurabh
parent 9965f443ee
commit 364332bcfe

View File

@@ -161,7 +161,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=Fals
columns = ''
extra_searchfields = [field for field in searchfields
if not field in ["name", "item_group", "description"]]
if field not in ["name", "item_group", "description"]]
if extra_searchfields:
columns = ", " + ", ".join(extra_searchfields)