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 8bb6f1f2
authored
2025-05-13 14:03:12 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Premersh
1 parent
5bc5a47a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
models/transportista.py
models/transportista.py
View file @
8bb6f1f
...
...
@@ -365,6 +365,10 @@ class trans_transportista(models.Model):
return
({
"url"
:
url
,
"type"
:
"ir.actions.act_url"
})
def
ComprarMembresia
(
self
):
"""Metodo usado por la web"""
#las siguientes lineas comentarlas a passar a productivo
homo
=
"https://www.mercadopago.com.ar/checkout/v1/payment/redirect/9d06a716-cb31-476c-aa48-5283021acc08/express/?router-request-id=2aeedf4d-c834-41ce-b92d-36db4160de86&preference-id=188260558-fcc99e2f-9a53-40e2-8aa5-ae4ef4494d7f&p=5a6552d81ef1ca6d82eb53e08e217b30"
return
({
"url"
:
homo
,
"error"
:
False
,
"mensaje"
:
""
})
try
:
rta
=
self
.
comprar
()
url
=
{
"url"
:
rta
[
"url"
],
"error"
:
False
,
...
...
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