Pass argument to doc_event in hook ? is it possible

hi ,
i write a method in
doc_events = {
“*”: {

i want to pass the doctype and docname to the method .
could that be possible

you can see this

and the method takes two parms which is doc and method

Any solutions for this?

Hi welcome to ERPNext Lee_Andrew

The docs and tutorials are a good place to start for example:

Then a forum search will give you pointers when you are stuck…

Thanks, Mr. Clarkej, I have read the docs and I’ve used the controller for my function to pass arguments.

1 Like