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 06531f70
authored
2023-06-24 19:20:46 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of git.anacsoft.com:matu/hgt_soporte
2 parents
cf064ca4
afbb5171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
models/incidencia.py
models/incidencia.py
View file @
06531f7
...
@@ -407,6 +407,16 @@ class hgt_soporte_incidencia(models.Model):
...
@@ -407,6 +407,16 @@ class hgt_soporte_incidencia(models.Model):
return
()
return
()
incidencia
.
Generarmensaje
(
opt
[
"mensaje"
],
opt
[
"usuario"
],
opt
[
"fecha"
])
incidencia
.
Generarmensaje
(
opt
[
"mensaje"
],
opt
[
"usuario"
],
opt
[
"fecha"
])
self
.
NotificarMensajeNuevo
(
incidencia
)
self
.
NotificarMensajeNuevo
(
incidencia
)
self
.
EnviarAvisoTelegram
()
def
EnviarAvisoTelegram
(
self
):
model
=
self
.
env
[
"hgt.telegram"
]
.
sudo
()
try
:
model
=
NotificarUsuario
(
self
,
f
"Se ha actualizado la incidencia {self.name}"
,
self
.
si_responsable
.
id
)
except
Exception
as
E
:
print
(
E
)
#raise UserError(str(opt))
#raise UserError(str(opt))
def
Generarmensaje
(
self
,
texto
,
usuario
,
fecha
):
def
Generarmensaje
(
self
,
texto
,
usuario
,
fecha
):
...
...
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