Commit 1e9cb472 by Your Name

On fly

1 parent 6ec72b3d
......@@ -39,13 +39,13 @@ class dispositivos(http.Controller):
def enviar_mensaje(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
identidad = http.request.env["asw.token"].sudo().search([])[0]
#identidad = http.request.env["asw.token"].sudo().search([])[0]
#identidad = self.http.env["asw.token"].sudo().search([])[0]
vals = {"mensaje_nombre":titulo,
"mensaje_descripcion":mensaje,
"mensaje_numero_whatsapp":telefono,
"mensaje_direccion_mail":email,
"identidad":identidad.id}
"identidad":False}
#print(vals)
mensaje = http.request.env['asw.mensaje'].sudo().create(vals)
mensaje.tipo = tipo
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!