'Cancel a remote document
:param doctype: DocType of the document to be cancelled
:param name: name of the document to be cancelled'

def cancel(self, doctype, name):

    return self.post_request({'cmd': 'frappe.client.cancel', 'doctype': doctype, 'name': name})
