def METHOD_NAME():
	from frappe.desk.treeview import make_tree_args
	args = frappe.form_dict
	args = make_tree_args(**args)
	if args.parent_location == "All Locations":
		args.parent_location = None
	frappe.get_doc(args).insert()