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 831c65cf
authored
2023-06-24 19:19:41 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
incidencia notificada via telegram
1 parent
176325a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
models/incidencia.py
models/incidencia.py
View file @
831c65c
...
...
@@ -373,6 +373,16 @@ class hgt_soporte_incidencia(models.Model):
return
()
incidencia
.
Generarmensaje
(
opt
[
"mensaje"
],
opt
[
"usuario"
],
opt
[
"fecha"
])
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))
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