Product search don't work with Item Code

The “product search” in website don’t work with “Item Code”.
I search a product with “Item Name” it works.
But when i use the “Item Code” it don’t work.

I search a product with “Description” ,it seams also work.

I found a small fix:

Line 30, add item_code, and change to

                                or name like %(search)s
                                or item_code like %(search)s)"""
1 Like

Hmmm, this is actually as much as I know is editable from doctype editor

@iHello send a pull-request

@ramielian not sure search fields are considered here

Wouldn’t the index option also include it?