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 c8a38ac6
authored
2025-09-14 11:45:14 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Agrego cambios base
1 parent
e0957b77
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
models/punto_retiro.py
models/transportista.py
models/user.py
views/punto_retiro_vista.xml
views/transportista_vista.xml
models/punto_retiro.py
View file @
c8a38ac
...
@@ -16,6 +16,7 @@ class trans_punto_retiro(models.Model):
...
@@ -16,6 +16,7 @@ class trans_punto_retiro(models.Model):
selection
=
[
selection
=
[
(
'sin_elevador'
,
'No tiene autoelevador'
),
(
'sin_elevador'
,
'No tiene autoelevador'
),
(
'con_autoelevador'
,
'Tiene autoelevador'
),])
(
'con_autoelevador'
,
'Tiene autoelevador'
),])
#Cambiar a buleano
pr_localidad
=
fields
.
Many2one
(
pr_localidad
=
fields
.
Many2one
(
...
...
models/transportista.py
View file @
c8a38ac
...
@@ -8,6 +8,7 @@ vista_previa = """<h2>Vista Previa</h2>
...
@@ -8,6 +8,7 @@ vista_previa = """<h2>Vista Previa</h2>
<h2>Publicado</h2>
<h2>Publicado</h2>
<img src="{}" alt="Previsualizacion" style="max-height: 400px; max-width: 400px;"/>
<img src="{}" alt="Previsualizacion" style="max-height: 400px; max-width: 400px;"/>
"""
"""
class
trans_transportista
(
models
.
Model
):
class
trans_transportista
(
models
.
Model
):
_name
=
'trans.transportista'
_name
=
'trans.transportista'
_description
=
'Transportista'
_description
=
'Transportista'
...
@@ -160,6 +161,9 @@ class trans_transportista(models.Model):
...
@@ -160,6 +161,9 @@ class trans_transportista(models.Model):
comodel_name
=
'trans.no_transporta'
,
comodel_name
=
'trans.no_transporta'
,
string
=
'Elementos que no transporta'
)
string
=
'Elementos que no transporta'
)
no_transporta
=
fields
.
Char
(
string
=
'No transporta'
)
viejo_db_id
=
fields
.
Integer
(
string
=
'Base de datos vieja'
,
default
=
0
,
readonly
=
True
)
viejo_db_id
=
fields
.
Integer
(
string
=
'Base de datos vieja'
,
default
=
0
,
readonly
=
True
)
...
@@ -194,6 +198,9 @@ class trans_transportista(models.Model):
...
@@ -194,6 +198,9 @@ class trans_transportista(models.Model):
help
=
'Archivo png o jpg de menos de 2 Mb'
help
=
'Archivo png o jpg de menos de 2 Mb'
)
)
ciudad
=
fields
.
Char
(
string
=
'Ciudad'
)
def
_compute_prev
(
self
):
def
_compute_prev
(
self
):
#print(dir(self.trans_logo), self.trans_logo, dir(self.imagen))
#print(dir(self.trans_logo), self.trans_logo, dir(self.imagen))
for
rec
in
self
:
for
rec
in
self
:
...
...
models/user.py
View file @
c8a38ac
...
@@ -8,6 +8,12 @@ class res_users(models.Model):
...
@@ -8,6 +8,12 @@ class res_users(models.Model):
lappa_token_pass
=
fields
.
Char
(
string
=
'Token de confirmacion'
)
lappa_token_pass
=
fields
.
Char
(
string
=
'Token de confirmacion'
)
lappa_token_ws
=
fields
.
Char
(
string
=
'Token de confirmacion 2'
)
lappa_token_ws
=
fields
.
Char
(
string
=
'Token de confirmacion 2'
)
transportista
=
fields
.
Many2one
(
comodel_name
=
'trans.transportista'
,
string
=
'Transportado'
)
def
CambiarContrasenia
(
self
,
val
):
def
CambiarContrasenia
(
self
,
val
):
print
(
self
.
id
,
self
.
env
.
user
.
id
)
print
(
self
.
id
,
self
.
env
.
user
.
id
)
...
...
views/punto_retiro_vista.xml
View file @
c8a38ac
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<header>
<header>
</header>
</header>
<sheet>
<sheet>
<!--Agregar autolevador-->
<group
col=
"2"
string=
"Datos de contacto y ubicación"
>
<group
col=
"2"
string=
"Datos de contacto y ubicación"
>
<field
name=
"pr_nombre"
colspan=
"2"
/>
<field
name=
"pr_nombre"
colspan=
"2"
/>
<field
name=
"pr_direccion"
colspan=
"2"
required=
"1"
/>
<field
name=
"pr_direccion"
colspan=
"2"
required=
"1"
/>
...
@@ -66,7 +67,3 @@
...
@@ -66,7 +67,3 @@
</data>
</data>
</odoo>
</odoo>
\ No newline at end of file
\ No newline at end of file
views/transportista_vista.xml
View file @
c8a38ac
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<field
name=
"trans_razon_social"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_razon_social"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_cuit"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_cuit"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_no_trasnporta"
widget=
"many2many_tags"
/>
<field
name=
"trans_no_trasnporta"
widget=
"many2many_tags"
/>
<field
name=
"no_transporta"
/>
<field
name=
"viejo_db_id"
/>
<field
name=
"viejo_db_id"
/>
</group>
</group>
<group
col=
"2"
string=
"Imagen"
>
<group
col=
"2"
string=
"Imagen"
>
...
@@ -84,6 +85,7 @@
...
@@ -84,6 +85,7 @@
<field
name=
"trans_categoria"
readonly=
"0"
colspan=
"2"
/>
<field
name=
"trans_categoria"
readonly=
"0"
colspan=
"2"
/>
<field
name=
"cliente_fac"
readonly=
"1"
/>
<field
name=
"cliente_fac"
readonly=
"1"
/>
<field
name=
"cliente_nombre"
/>
<field
name=
"cliente_nombre"
/>
<field
name=
"ciudad"
/>
<field
name=
"trans_email"
widget=
"email"
colspan=
"2"
/>
<field
name=
"trans_email"
widget=
"email"
colspan=
"2"
/>
<field
name=
"constancia_cuit_nombre"
invisible=
"1"
/>
<field
name=
"constancia_cuit_nombre"
invisible=
"1"
/>
<field
name=
"constancia_cuit"
widget=
"file"
filename=
"constancia_cuit_nombre"
/>
<field
name=
"constancia_cuit"
widget=
"file"
filename=
"constancia_cuit_nombre"
/>
...
...
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