def set_parent_in_children(self):
		for d in self.get_all_children():
			d.parent = self.name
			d.parenttype = self.doctype
Updates `parent` and `parenttype` property in all children.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.set_parent_in_children