Stay on current doc after quick entry

Hi there,

i implemented a button in my doc(doctype 1) calling the quick entry for doctype 2. while the quick entry works i want to stay on my current form and not be redirected to the newly created doc. what is the order for the frappe.new_doc() to stop the redirect? i cant find it in the documentation and i didnt fully understand the frappe code yet. thanks in advance.

best regards

Any idea on how to achieve the same?