Fix - Send pay invoice

This commit is contained in:
Mauricio Baeza 2019-03-04 19:44:42 -06:00
parent aad48639ee
commit 2ee2b8be43
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
v 1.28.2 [04-mar-2019]
----------------------
- Error: Al enviar facturas de pago
v 1.28.1 [04-mar-2019]
----------------------
- Error: Al buscar facturas por fechas

View File

@ -1 +1 @@
1.28.1
1.28.2

View File

@ -6612,6 +6612,9 @@ class CfdiPagos(BaseModel):
id = int(values['id'])
values = Configuracion.get_({'fields': 'correo'})
contra = Configuracion.get_('correo_contra')
rfc = Emisor.select()[0].rfc
if not values:
msg = 'No esta configurado el servidor de correo de salida'
return {'ok': False, 'msg': msg}
@ -6635,7 +6638,7 @@ class CfdiPagos(BaseModel):
'puerto': values['correo_puerto'],
'ssl': bool(int(values['correo_ssl'])),
'usuario': values['correo_usuario'],
'contra': values['correo_contra'],
'contra': utils.decrypt(contra, rfc),
}
options = {
'para': to,

View File

@ -47,7 +47,7 @@ except ImportError:
DEBUG = DEBUG
VERSION = '1.28.1'
VERSION = '1.28.2'
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)