What is the right docevent for Button Update?

What is the right docevent for Button Update?

https://frappe.github.io/frappe/user/en/guides/basics/hooks

https://frappe.io/docs/user/en/guides/basics/hooks

Thanks

Hi @johnskywalker

on_update_after_submit is the event
For more details see below example

https://github.com/frappe/erpnext/blob/develop/erpnext/hr/doctype/leave_allocation/leave_allocation.py#L29-L36

Hi thanks! will try this :slight_smile: