def set_last_document_number(self, number):
        self.sequence_last = int(number)
        self.save()
        return self
SET last document number for this instance.
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/models.py/DocumentTypeRule.set_last_document_number