Hi
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.
- In hooks.py add this
override_whitelisted_methods = {
"frappe.abc.xyz.main_method": "custom_app.xyz.custom_method_name"
}
- In you custom_app/xyz file, add this method as whitelisted method
@frappe.whitelist()
def custom_method_name():
main_method_code()
add_custom_logic_here()