Set route function not working properly!

Hello,

Im Trying to Redirect from Warehouse doctype to My Custom Doctype. my local setup is version 12 but test instance as version 13 thought the route options im getting from frappe.get_route() is same when im trying to set_route(‘Form’,local_docname) version 13 shows not found error.

Im not sure whether its a bug or im doing it wrong so any help with this would be very helpfull.

Thank You