Browse Source

Retira limite de data p migrar cod_protocolo

pull/1490/head
Marcio Mazza 7 years ago
parent
commit
8b0137a103
  1. 6
      sapl/legacy/migration.py

6
sapl/legacy/migration.py

@ -510,10 +510,8 @@ def adjust_normarelacionada(new, old):
def adjust_protocolo_antes_salvar(new, old): def adjust_protocolo_antes_salvar(new, old):
data_ajuste = date(2014, 11, 13) if old.num_protocolo is None:
new.numero = old.cod_protocolo
if old.num_protocolo is None and data_ajuste >= old.dat_protocolo:
new.numero = old.pk
def adjust_protocolo_depois_salvar(new, old): def adjust_protocolo_depois_salvar(new, old):

Loading…
Cancel
Save