Fix - abrir prefacturas grandes

This commit is contained in:
Mauricio Baeza 2018-01-21 17:21:39 -06:00
parent a946a1aa9a
commit 046a61a2f2
2 changed files with 1 additions and 4 deletions

View File

@ -8,4 +8,4 @@ threads = 4
py-autoreload = 1
thunder-lock = true
static-map = /static=../static
http-timeout = 120
http-timeout = 180

View File

@ -4090,9 +4090,6 @@ class PreFacturasDetalle(BaseModel):
@classmethod
def can_open(cls, id):
c = cls.count(id)
# ~ result = c < 300
# ~ if result:
# ~ return True
PreFacturas.get_pdf_in_thread(id)
return c < 300