Merge pull request #16201 from netchampfaris/fix-product-search

fix(product-search): Include variants in product search
This commit is contained in:
Faris Ansari 2018-12-14 16:36:42 +05:30 committed by GitHub
commit 871f4e5df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ def get_product_list(search=None, start=0, limit=12):
left join tabBin S on I.item_code = S.item_code and I.website_warehouse = S.warehouse
where (I.show_in_website = 1)
and I.disabled = 0
and (I.variant_of is null or I.variant_of='')
and (I.end_of_life is null or I.end_of_life='0000-00-00' or I.end_of_life > %(today)s)"""
# search term condition