Override Whitelisted method in erpnext

How to override whitelisted method
i want to overrid _make_sales_order method in my costume app i have mention hooks.py
override_whitelisted_methods pass the path but its not working
please help

I also need this

In order to override server side whitelisted method, i did the following.
This works for v11.

  1. In hooks.py add this
override_whitelisted_methods = {
	"frappe.abc.xyz.main_method": "custom_app.xyz.custom_method_name"
  1. In you custom_app/xyz file, add this method as whitelisted method
def custom_method_name():