Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_soporte
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 8af49d17
authored
2025-10-31 12:20:51 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
reviso si se puede mandar mensaje
1 parent
1261ffcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
models/incidencia.py
models/incidencia.py
View file @
8af49d1
...
@@ -241,6 +241,9 @@ class hgt_soporte_incidencia(models.Model):
...
@@ -241,6 +241,9 @@ class hgt_soporte_incidencia(models.Model):
pass
pass
def
enviar_mensaje_ws
(
self
,
tipo
=
'Whatsapp'
,
mensaje
=
"mensaje"
,
titulo
=
"Titulo"
,
email
=
""
,
telefono
=
""
):
#Crea mensaje y lo envia
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
#Hay que agregar al modelo la relacion con los mensajes para tener trazavilidad
tok
=
self
.
env
[
"asw.token"
]
.
sudo
()
.
search
([])
if
len
(
tok
)
==
0
:
return
vals
=
{
"mensaje_nombre"
:
titulo
,
vals
=
{
"mensaje_nombre"
:
titulo
,
"mensaje_descripcion"
:
mensaje
,
"mensaje_descripcion"
:
mensaje
,
"mensaje_numero_whatsapp"
:
telefono
,
"mensaje_numero_whatsapp"
:
telefono
,
...
@@ -300,6 +303,7 @@ class hgt_soporte_incidencia(models.Model):
...
@@ -300,6 +303,7 @@ class hgt_soporte_incidencia(models.Model):
#("entro a enviar incidencia y ahora el valor de ella es " + str(self.subida))
#("entro a enviar incidencia y ahora el valor de ella es " + str(self.subida))
#print(frespuesta)
#print(frespuesta)
def
AbrirLocal
(
self
):
def
AbrirLocal
(
self
):
self
.
estado
=
"abierta"
self
.
estado
=
"abierta"
self
.
NotificarAlRepresentanteTecnico
()
self
.
NotificarAlRepresentanteTecnico
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment