Doc Events - Is there an event trigger when creating a new entry to a doctype?

I know how to use Doc_Events in hooks.py, I know about validate, on_update, onload, etc.

I am trying to find out if there is an event for when a new entry or doc is being made, this event would need to trigger BEFORE the validate event.

onload is for a form/doc/entry that is already saved, and all the other event tags I have found are triggered AFTER validate.

Specifically I am trying to override the default validate function for a New Payment Entry being added.

Does anyone know of an event that is triggered before validate on a new entry so I can override the existing validate function?

Thanks!

These might help

https://frappeframework.com/docs/user/en/guides/app-development/executing-code-on-doctype-events

https://frappeframework.com/docs/user/en/python-api/hooks#list-of-available-hooks

1 Like