Commit cf064ca4 by Juan

Forzado try cach

1 parent 1bb65fa6
......@@ -227,12 +227,16 @@ class hgt_soporte_incidencia(models.Model):
for user in users:
if self.env.user.has_group('hgt_soporte.group_soporte_configurador'):
if user.CelularRecuperacion != False:
self.enviar_mensaje_ws(
telefono=user.CelularRecuperacion,
mensaje=mensaje
)
self.env["hgt.telegram"].sudo().NotificarUsuario(mensaje, user.id)
try:
self.enviar_mensaje_ws(
telefono=user.CelularRecuperacion,
mensaje=mensaje)
except:
pass
try:
self.env["hgt.telegram"].sudo().NotificarUsuario(mensaje, user.id)
except:
pass
def enviar_mensaje_ws(self, tipo='Whatsapp', mensaje="mensaje", titulo="Titulo",email="",telefono=""):#Crea mensaje y lo envia
#Hay que agregar al modelo la relacion con los mensajes para tener trazavilidad
vals = {"mensaje_nombre":titulo,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!