Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_transportar
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 1e9cb472
authored
2025-08-14 11:16:51 +0000
by
Your Name
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
On fly
1 parent
6ec72b3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
controllers/altausuario.py
controllers/altausuario.py
View file @
1e9cb47
...
@@ -39,13 +39,13 @@ class dispositivos(http.Controller):
...
@@ -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
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
#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]
#identidad = self.http.env["asw.token"].sudo().search([])[0]
vals
=
{
"mensaje_nombre"
:
titulo
,
vals
=
{
"mensaje_nombre"
:
titulo
,
"mensaje_descripcion"
:
mensaje
,
"mensaje_descripcion"
:
mensaje
,
"mensaje_numero_whatsapp"
:
telefono
,
"mensaje_numero_whatsapp"
:
telefono
,
"mensaje_direccion_mail"
:
email
,
"mensaje_direccion_mail"
:
email
,
"identidad"
:
identidad
.
id
}
"identidad"
:
False
}
#print(vals)
#print(vals)
mensaje
=
http
.
request
.
env
[
'asw.mensaje'
]
.
sudo
()
.
create
(
vals
)
mensaje
=
http
.
request
.
env
[
'asw.mensaje'
]
.
sudo
()
.
create
(
vals
)
mensaje
.
tipo
=
tipo
mensaje
.
tipo
=
tipo
...
@@ -53,4 +53,4 @@ class dispositivos(http.Controller):
...
@@ -53,4 +53,4 @@ class dispositivos(http.Controller):
@http.route
(
'/lappa/blank'
,
auth
=
'public'
,
type
=
'http'
,
website
=
True
,
csrf
=
False
,
methods
=
[
'POST'
,
'GET'
,
'OPTIONS'
])
@http.route
(
'/lappa/blank'
,
auth
=
'public'
,
type
=
'http'
,
website
=
True
,
csrf
=
False
,
methods
=
[
'POST'
,
'GET'
,
'OPTIONS'
])
def
index6
(
self
,
**
kw
):
def
index6
(
self
,
**
kw
):
return
(
""
)
\ No newline at end of file
\ No newline at end of file
return
(
""
)
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