Add missing fields in select, the same as in get_product_list_for_group (#14789)
diff --git a/erpnext/templates/pages/product_search.py b/erpnext/templates/pages/product_search.py
index ff1dd7d..cf1876c 100644
--- a/erpnext/templates/pages/product_search.py
+++ b/erpnext/templates/pages/product_search.py
@@ -18,9 +18,10 @@
# limit = 12 because we show 12 items in the grid view
# base query
- query = """select I.name, I.item_name, I.item_code, I.route, I.website_image, I.thumbnail, I.item_group,
- I.description, I.web_long_description as website_description,
- case when (S.actual_qty - S.reserved_qty) > 0 then 1 else 0 end as in_stock
+ query = """select I.name, I.item_name, I.item_code, I.route, I.image, I.website_image, I.thumbnail, I.item_group,
+ I.description, I.web_long_description as website_description, I.is_stock_item,
+ case when (S.actual_qty - S.reserved_qty) > 0 then 1 else 0 end as in_stock, I.website_warehouse,
+ I.has_batch_no
from `tabItem` I
left join tabBin S on I.item_code = S.item_code and I.website_warehouse = S.warehouse
where (I.show_in_website = 1 or I.show_variant_in_website = 1)