def METHOD_NAME(self, **kwargs):
    self.ensure_one()
    error_msg = ""
    try:
        lroe_tbai_api = self.get_lroe_ticketbai_api()
        lroe_operation = self.create_tbai_lroe_operation()
    except exceptions.ValidationError as ve:
        _logger.exception(ve)
        lroe_tbai_api = None
        lroe_operation = None
        error_msg = ve.name
    if lroe_tbai_api is not None and lroe_operation is not None:
        request_headers = LROETicketBaiApi.get_request_headers(lroe_operation)
        data_length, data_content = lroe_operation.set_trx_gzip_file()
        request_headers["Content-Length"] = data_length
        lroe_response = lroe_tbai_api.requests_post(request_headers, data_content)
        values = self.env["lroe.operation.response"].prepare_lroe_response_values(
            lroe_response, lroe_operation, **kwargs
        )
    else:
        values = self.env["lroe.operation.response"].prepare_lroe_error_values(
            lroe_operation, error_msg, **kwargs
        )
    if values:
        lroe_response_obj = self.env["lroe.operation.response"].create(values)
        if lroe_response_obj:
            operation_state = None
            if (
                lroe_response_obj.state
                == LROEOperationResponseState.BUILD_ERROR.value
                or lroe_response_obj.state
                == LROEOperationResponseState.REQUEST_ERROR.value
                or lroe_response_obj.state
                == LROEOperationResponseState.INCORRECT.value
            ):
                operation_state = LROEOperationStateEnum.ERROR.value
            if lroe_response_obj.state == LROEOperationResponseState.CORRECT.value:
                operation_state = LROEOperationStateEnum.RECORDED.value
            if (
                lroe_response_obj.state
                == LROEOperationResponseState.PARTIALLY_CORRECT.value
            ):
                operation_state = LROEOperationStateEnum.RECORDED_WARNING.value
            if lroe_operation and operation_state:
                lroe_operation.state = operation_state
            return lroe_response_obj.response_line_ids.tbai_response_id