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 06d0714b
authored
2022-07-14 13:13:46 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Mejora coordenadas
1 parent
c40d54c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
models/punto_retiro.py
views/transportista_vista.xml
models/punto_retiro.py
View file @
06d0714
...
...
@@ -79,7 +79,10 @@ class trans_punto_retiro(models.Model):
@api.depends
(
'pr_coordenadas'
)
def
compute_pr_coordenadas
(
self
):
for
rec
in
self
:
rec
.
pr_coordenadas
=
"-32.946832, -60.640122"
loc
=
rec
.
pr_localidad
.
coordenadas
if
loc
==
False
:
loc
=
"-32.946832, -60.640122"
rec
.
pr_coordenadas
=
loc
@api.one
@api.constrains
(
'pr_telefono'
)
...
...
views/transportista_vista.xml
View file @
06d0714
...
...
@@ -91,7 +91,7 @@
</group>
<group
col=
"4"
string=
"Facturas"
>
<field
name=
"comprobantes"
readonly=
"
1
"
colspan=
"4"
nolabel=
"1"
/>
<field
name=
"comprobantes"
readonly=
"
0
"
colspan=
"4"
nolabel=
"1"
/>
</group>
<!--</sheet> -->
...
...
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