Override instead of appending hooks

Hi there,

I am trying to build my own app also using some lines in the hooks.py.

However, some are already existent in the ERPNext hooky.py.

So in the end my hooks are appended to the ERPNext’s ones and eventually are not working properly.

Is there a way to tell hooks that they should replace existing hooks instead of appending to them?

Thanks a lot for any help!

1 Like