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 c40d54c9
authored
2022-07-14 11:29:32 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Base coordenadas de puntos de retiro
1 parent
87684007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
models/punto_retiro.py
models/punto_retiro.py
View file @
c40d54c
...
...
@@ -71,6 +71,16 @@ class trans_punto_retiro(models.Model):
column1
=
'trans_transportista_id'
,
)
pr_coordenadas
=
fields
.
Char
(
string
=
'Coordenas punto retiro'
,
readonly
=
True
,
compute
=
"compute_pr_coordenadas"
)
@api.depends
(
'pr_coordenadas'
)
def
compute_pr_coordenadas
(
self
):
for
rec
in
self
:
rec
.
pr_coordenadas
=
"-32.946832, -60.640122"
@api.one
@api.constrains
(
'pr_telefono'
)
def
_requerir_tel
(
self
):
...
...
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