How To Override a Method in Frappe or ERPNext

How To Override a Method in Frappe or ERPNext

CORRECTION: Please extend the Student class instead of the Document one. See details on the blog at https://codewithkarani.com/2021/11/22/how-to-override-a-method-in-frappe-or-erpnext/

If you need to alter methods written by ERPNext and/or Frappe teams, you will need to override the method with your own custom method. This is done by introducing the override to the hooks file inside your custom application, and then pointing the hook to the place where the class containing your custom method is.

OverrideMethodFrappe

Post a Comment

0 Comments