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 176325a7
authored
2023-05-14 20:32:22 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gfdg
1 parent
0f9723fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
controllers/controller_mensaje.py
controllers/controller_mensaje.py
View file @
176325a
...
...
@@ -11,7 +11,7 @@ class controlador_soporte_mensajes(http.Controller):
def
index
(
self
,
**
kw
):
if
not
kw
[
"token"
]
==
TOKEN
:
return
({
"resultado"
:
"ALERTA DE SEGURIDAD error autenticacion"
})
print
(
kw
)
inci_model
=
http
.
request
.
env
[
"hgt.soporte_incidencia"
]
.
sudo
()
incidencia
=
inci_model
.
search
([(
'id'
,
'='
,
kw
[
"id_incide_original"
]
)])
...
...
@@ -23,7 +23,7 @@ class controlador_soporte_mensajes(http.Controller):
lista
.
append
(
nvo_mensaje
.
id
)
incidencia
.
si_mensajes
=
lista
incidencia
.
registrar_mensaje
(
nvo_mensaje
)
self
.
NotificarMensajeNuevo
(
incidencia
)
return
(
"Exito"
)
def
NotificarMensajeNuevo
(
self
,
incidencia
):
...
...
@@ -52,6 +52,7 @@ class controlador_soporte_mensajes(http.Controller):
def
crearMensaje
(
self
,
model
,
incidencia
,
kw
):
self
.
NotificarMensajeNuevo
(
incidencia
)
nvo_mens
=
model
.
create
({
'si_mensaje'
:
kw
[
'si_mensaje'
],
'si_creador_nombre'
:
kw
[
'si_creador_nombre'
],
...
...
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