From 4412f10918962c40cb3f5ce7847ce5547b17c168 Mon Sep 17 00:00:00 2001 From: Britlog Date: Tue, 3 Jul 2018 07:03:49 +0200 Subject: [PATCH] Add missing fields in select, the same as in get_product_list_for_group (#14789) --- erpnext/templates/pages/product_search.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/templates/pages/product_search.py b/erpnext/templates/pages/product_search.py index ff1dd7d6b6..cf1876c674 100644 --- a/erpnext/templates/pages/product_search.py +++ b/erpnext/templates/pages/product_search.py @@ -18,9 +18,10 @@ def get_product_list(search=None, start=0, limit=12): # 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)