Below code I have written for creating a custom filter for the item_code to be selected in a Delivery Note. It works fine on other fields but it specially doesn’t work on item_code field. Any ideas?
@kid1194
I’ve tried it and still have the same issue. I have another field where I’m apply a filter using similar code, but item_code specifically is not getting filtered.
Is there anything in ERPNext itself that is preventing filters from being applied to item_code specifically?
@thelahera It looks like the item_code is a child table field soake sure that the doctype for the client script is the parent doctype not the child doctype and the script should be something like…
@kid1194
I’ve set the child table field name correctly. It is “items”. As mentioned already, I am able to apply the filter on other fields in the child table, except on item_code.
@thelahera I have never faced nor heard of a link field that can’t be filtered so this is something new…
Or there might be another script that is overriding your filter…