@whitelist.__func__
	def cancel(self):
		self.docstatus = 2
		self.save()
Cancel the document. Sets `docstatus` = 2, then saves.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.cancel