Returns the current record from the tree view.
        
        :return     <orb.Table> || None

def currentRecord(self):
        """
        Returns the current record from the tree view.
        
        :return     <orb.Table> || None
        """
        item = self.currentItem()
        if isinstance(item, XOrbRecordItem):
            return item.record()
        return None