def METHOD_NAME(self):
    for subseq in self:
        if not subseq.subsequent_document_id:
            subseq.operation_performed = False
        elif subseq.subsequent_document_id.state_edoc == SITUACAO_EDOC_CANCELADA:
            subseq.operation_performed = False
        else:
            subseq.operation_performed = True