def set_new_name(self):
		set_new_name(self)
		# set name for children
		for d in self.get_all_children():
			set_new_name(d)
Calls `frappe.naming.se_new_name` for parent and child docs.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.set_new_name