def show_last_allocated_barcode(self):
        self.sequence_last += 1
        return self._generate_document_barcode(self.sequence_last)
Function shows last available Document Code used for this Document Type Rule
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/models.py/DocumentTypeRule.show_last_allocated_barcode