How to use doctypes from erpnext to custom app

Hello guys,
Can anyone tell me how this hooks.py works, and how can i use doctypes from erpnext to custom app and modify its .js, .py like files. is it possible or not?

Explore the concept of the hooks.

override js: Hooks

for py:

I hope this helps.

1 Like

Thank you