Thanks for replying @sanjay.
I guess this may work in other cases, but mine is a little too specific, you see, I have a whole other system that will consume data from my custom app in frappe, and when it does, I want to create a document with the data that was in that document at that time, plus with some others that will be calculated in the moment according with some of the data.
I already made a workaround for this issue by using first a POST to create the document, then in the other system I make the decisions and all, and finally then I call a PUT request to update the fields with the information I needed. I just wish I could do this in one go… Just call a POST request, already changing the document status to 2, and the Custom Script would run and make everything in one go.
Anyway… Thanks for the reply!
Rafael H Chacon