def METHOD_NAME(self):
    self.ensure_one()
    if not self.access_token:
        raise UserError(_("You don't have ANAF access token. Please get it first."))
    param = {
        "client_id": self.client_id,
        "client_secret": self.client_secret,
        "access_token": self.access_token,
        # "refresh_token": should function for refresh function
        "token_type_hint": "access_token",  # refresh_token  (should work without)
    }
    url = self.anaf_oauth_url + "/revoke"
    response = requests.post(
        url,
        data=param,
        timeout=80,
        headers={
            "Content-Type": "application/x-www-form-urlencoded",
        },
    )
    if response.status_code == 200:
        message = _("Revoke token response: %s") % response.json()
    else:
        message = _("Revoke token response: %s") % response.reason
    self.message_post(body=message)
    if response.status_code == 200:
        self.write(
            {
                "code": "",
                "access_token": "",
                "refresh_token": "",
                "last_request_datetime": False,
                "client_token_valability": False,
            }
        )