'Internally used method to get the field labels
Used to remove the report_groupby label (if present)'

def getLabels(self):

    labels = self.labels
    if (self.report_groupby != None):
        for label in labels:
            if (label == self.report_groupby.label):
                labels.remove(label)
    return labels
