I have created a Custom Field ‘Party Type’ in Customer with ‘SELECT’ Type and with values Distributor,Reseller and Enduser options.I want to filter customer in Quotation according to value selected for ‘Party Type’.For that i have created below custom script .But itis not filtering.
cur_frm.cscript.custom_refresh = function(doc) {
An other silly query, you are saying that you want to filter Customers and have applied filter on distributor field name. Is that your intend or a typo?
Dear BhupeshGupta,
Thanks for your reply.‘distributor’ is the link field which is linked to Customer.But the below code also not filtering the Customers.All customers are showing.
Dear Nabin,
Thanks for your reply.It is working while commenting the line [“customer”,“customer”] in selling → sales_common.js.With out commenting this line , Is there any other possibility for doing this ?.Because we have only front end access for the PROD as it is on Frappe Cloud.
Search engine gives highest priority to hooks.py, if there are any standard_queries mentioned for the document, it execute that one. And in frappecloud, users does not have access to hooks.py.