How override or should be disabled!

I have already override_whitelisted_methods to call my send_sms and it works for a single document or single Receiver but in the SMS Center how to override this call so it can call mine?

from erpnext.setup.doctype.sms_settings.sms_settings import send_sms

to mine

from angola_erp.angola_erpnext.validations.sms_settings import send_sms

I don’t think there is a generic hook to override whitelisted methods, maybe there could be!

1 Like

@rmehta thanks for the support. I believe there should as for this case I had to disable the button but for other cases override would be the solution