Workflow messages

If you open a leave application, a message appears saying “This Leave Application is pending approval. Only the Leave Approver can update status.”

I’d like to have similar messages for Purchase Orders, Sales Orders, etc. Is there a way to do this?

This is the code used in Leave Application-
https://github.com/frappe/erpnext/blob/develop/erpnext/hr/doctype/leave_application/leave_application.js#L30

You could write a similar custom script i believe.

Thank you for the help :slight_smile: