ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Override standard_queries in Core hooks.py

Hi, I want to override the core standard_queries below in my custom app hooks.py, but my custom code is not being called.

This is the standard queries in core hooks.py:

standard_queries = {
	"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list",
	"Healthcare Practitioner": "erpnext.healthcare.doctype.healthcare_practitioner.healthcare_practitioner.get_practitioner_list"
}

This is my custom app hooks.py:

standard_queries = {

     "Healthcare Practitioner": "wellness.whitelisted.get_practitioner_list_custom"

}

I tested commenting out the core standard_queries in my development, and it does call my custom standard queries. But whenever I put the core code back, it wouldn’t call my custom standard queries.

Can anyone please help? Thanks!