I want to fire fuction in every insert to gl_entry

IMO, it is related to this?

To run a script on form submission, use the on_submit method.
https://frappeframework.com/docs/user/en/basics/doctypes/controllers