def METHOD_NAME(self):
    invoice = self.create_invoice(self.supplier_intraEU, [100], taxes=self.tax_22ai)
    invoice.button_cancel()
    self.assertEqual(invoice.state, "cancel")
    invoice.button_draft()
    invoice.refresh()
    self.assertEqual(invoice.state, "draft")