def on_cancel(self): self.ignore_linked_doctypes = ('GL Entry') make_reverse_gl_entry(voucher_type=self.doctype, voucher_no=self.name)
def on_cancel(self): make_reverse_gl_entry(self, self.doctype, self.name)