Hide fields when running new_doc

Anyone knows how to hide fields as part of running new_doc?

Example:

doclist.update({"supplier": "ABCDE"})```
`**Hide some field**`

@bohlian Can you explain use case?

@saurabh6790 I want to create a new Purchase Invoice document but I want to hide the Update Stock checkbox because I do not want the user to process stock movement.