From 4bf02e46644f1bade023b76da1f02f1a4fb10fc9 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 24 May 2017 17:04:18 -0300 Subject: [PATCH] Fixes #1122 --- sapl/protocoloadm/forms.py | 4 ++-- sapl/protocoloadm/views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py index d8f996fe3..c22eb762f 100644 --- a/sapl/protocoloadm/forms.py +++ b/sapl/protocoloadm/forms.py @@ -20,8 +20,8 @@ from .models import (DocumentoAcessorioAdministrativo, DocumentoAdministrativo, Protocolo, TipoDocumentoAdministrativo, TramitacaoAdministrativo) -TIPOS_PROTOCOLO = [('0', 'Enviado'), ('1', 'Recebido'), ('', 'Ambos')] -TIPOS_PROTOCOLO_CREATE = [('0', 'Enviado'), ('1', 'Recebido')] +TIPOS_PROTOCOLO = [('0', 'Recebido'), ('1', 'Enviado'), ('', 'Ambos')] +TIPOS_PROTOCOLO_CREATE = [('0', 'Recebido'), ('1', 'Enviado')] NATUREZA_PROCESSO = [('', 'Ambos'), ('0', 'Administrativo'), diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index b50edaaf0..234f5c13c 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -416,6 +416,7 @@ class ProtocoloMateriaView(PermissionRequiredMixin, CreateView): '%H:%M') protocolo.timestamp = datetime.strptime( datetime.now().strftime("%Y-%m-%d %H:%M"), "%Y-%m-%d %H:%M") + protocolo.tipo_protocolo = 0 protocolo.tipo_processo = '1' # TODO validar o significado protocolo.anulado = False