Hello @Basant You override methods in the Frappe framework in exactly the same way as you do in ERPNext,
In your Custom app.
Options for overriding a Python function:
-
If it is a whitelisted method, use the override_whitelisted_methods hook.
-
If it is a standard doctype classes , use override_doctype_class hook.
-
For document methods and events, use doc_events hook.
-
If it falls outside these options, you can use monkey patching. Frappe Monkey Patching Guide: Overriding/Change Core Code Without Touching it
Overriding JavaScript classes - Use files under public/js