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 353d8bf6
authored
2020-10-27 11:44:26 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
correcciones ortogracficas
1 parent
99a4d965
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
data_xml/dias.xml
models/dias.py
models/punto_retiro.py
models/tipo_transporte.py
models/transportista.py
views/menu_vista.xml
views/transportista_vista.xml
data_xml/dias.xml
View file @
353d8bf
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<field
name=
'dia_nombre'
>
Martes
</field>
<field
name=
'dia_nombre'
>
Martes
</field>
</record>
</record>
<record
id=
"trans_dias_mie"
model=
"trans.dias"
>
<record
id=
"trans_dias_mie"
model=
"trans.dias"
>
<field
name=
'dia_nombre'
>
Mi
e
rcoles
</field>
<field
name=
'dia_nombre'
>
Mi
é
rcoles
</field>
</record>
</record>
<record
id=
"trans_dias_jue"
model=
"trans.dias"
>
<record
id=
"trans_dias_jue"
model=
"trans.dias"
>
<field
name=
'dia_nombre'
>
Jueves
</field>
<field
name=
'dia_nombre'
>
Jueves
</field>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<field
name=
'dia_nombre'
>
Viernes
</field>
<field
name=
'dia_nombre'
>
Viernes
</field>
</record>
</record>
<record
id=
"trans_dias_sab"
model=
"trans.dias"
>
<record
id=
"trans_dias_sab"
model=
"trans.dias"
>
<field
name=
'dia_nombre'
>
S
a
bado
</field>
<field
name=
'dia_nombre'
>
S
á
bado
</field>
</record>
</record>
<record
id=
"trans_dias_dom"
model=
"trans.dias"
>
<record
id=
"trans_dias_dom"
model=
"trans.dias"
>
<field
name=
'dia_nombre'
>
Domingo
</field>
<field
name=
'dia_nombre'
>
Domingo
</field>
...
...
models/dias.py
View file @
353d8bf
...
@@ -3,11 +3,11 @@ from odoo import models, fields, api, exceptions
...
@@ -3,11 +3,11 @@ from odoo import models, fields, api, exceptions
class
trans_dias
(
models
.
Model
):
class
trans_dias
(
models
.
Model
):
_name
=
'trans.dias'
_name
=
'trans.dias'
_description
=
'D
i
a de la semana'
_description
=
'D
í
a de la semana'
_rec_name
=
'dia_nombre'
_rec_name
=
'dia_nombre'
dia_nombre
=
fields
.
Char
(
dia_nombre
=
fields
.
Char
(
string
=
u'D
ia
'
,
string
=
u'D
ías
'
,
readonly
=
True
readonly
=
True
)
)
\ No newline at end of file
\ No newline at end of file
models/punto_retiro.py
View file @
353d8bf
...
@@ -20,32 +20,32 @@ class trans_punto_retiro(models.Model):
...
@@ -20,32 +20,32 @@ class trans_punto_retiro(models.Model):
)
)
pr_direccion
=
fields
.
Text
(
pr_direccion
=
fields
.
Text
(
string
=
u'Direcci
o
n'
,
string
=
u'Direcci
ó
n'
,
required
=
True
,
required
=
True
,
)
)
pr_horario
=
fields
.
Text
(
pr_horario
=
fields
.
Text
(
string
=
u'Horarios de Atenci
o
n'
,
string
=
u'Horarios de Atenci
ó
n'
,
required
=
True
required
=
True
)
)
pr_feriados
=
fields
.
Text
(
pr_feriados
=
fields
.
Text
(
string
=
u'Feriados Locales'
,
string
=
u'Feriados Locales'
,
help
=
u'Ingrese informaci
o
n sobre horarios en feriados locales'
,
help
=
u'Ingrese informaci
ó
n sobre horarios en feriados locales'
,
)
)
pr_telefono
=
fields
.
Integer
(
pr_telefono
=
fields
.
Integer
(
string
=
'N
umero de Tele
fono'
,
string
=
'N
úmero de Telé
fono'
,
required
=
True
required
=
True
)
)
pr_observaciones
=
fields
.
Text
(
pr_observaciones
=
fields
.
Text
(
string
=
u'Observaciones'
,
string
=
u'Observaciones'
,
help
=
u'Ingrese si posee alguna observaci
o
n'
,
help
=
u'Ingrese si posee alguna observaci
ó
n'
,
)
)
pr_dias_trans
=
fields
.
Many2many
(
pr_dias_trans
=
fields
.
Many2many
(
string
=
u'D
i
as en que pasa el transporte'
,
string
=
u'D
í
as en que pasa el transporte'
,
comodel_name
=
'trans.dias'
,
comodel_name
=
'trans.dias'
,
relation
=
'trans_dias_punto_retiro_rel'
,
relation
=
'trans_dias_punto_retiro_rel'
,
column1
=
'trans_dias_id'
,
column1
=
'trans_dias_id'
,
...
@@ -61,7 +61,7 @@ class trans_punto_retiro(models.Model):
...
@@ -61,7 +61,7 @@ class trans_punto_retiro(models.Model):
@api.constrains
(
'pr_telefono'
)
@api.constrains
(
'pr_telefono'
)
def
_requerir_tel
(
self
):
def
_requerir_tel
(
self
):
if
self
.
pr_telefono
==
0
:
if
self
.
pr_telefono
==
0
:
raise
exceptions
.
ValidationError
(
'Por favor ingrese el tel
e
fono'
)
raise
exceptions
.
ValidationError
(
'Por favor ingrese el tel
é
fono'
)
...
...
models/tipo_transporte.py
View file @
353d8bf
...
@@ -28,6 +28,6 @@ class trans_tipo_transporte(models.Model):
...
@@ -28,6 +28,6 @@ class trans_tipo_transporte(models.Model):
@api.constrains
(
'tt_capacidad'
)
@api.constrains
(
'tt_capacidad'
)
def
_requerir_capacidad
(
self
):
def
_requerir_capacidad
(
self
):
if
self
.
tt_capacidad
==
0.0
:
if
self
.
tt_capacidad
==
0.0
:
raise
exceptions
.
ValidationError
(
'Por favor ingrese la Capacidad tolerada por su transporte'
)
raise
exceptions
.
ValidationError
(
'Por favor ingrese la Capacidad
de Carga
tolerada por su transporte'
)
models/transportista.py
View file @
353d8bf
...
@@ -8,11 +8,11 @@ class trans_transportista(models.Model):
...
@@ -8,11 +8,11 @@ class trans_transportista(models.Model):
_order
=
'trans_nombre'
_order
=
'trans_nombre'
_sql_constraints
=
[
_sql_constraints
=
[
(
'trans_cuit_unique'
,
'UNIQUE(trans_cuit)'
,
(
'trans_cuit_unique'
,
'UNIQUE(trans_cuit)'
,
'Ya existe otro transportista con el mismo CUIT, por favor rev
i
selo y vuelva a intentarlo'
),
'Ya existe otro transportista con el mismo CUIT, por favor rev
í
selo y vuelva a intentarlo'
),
]
]
trans_razon_social
=
fields
.
Char
(
trans_razon_social
=
fields
.
Char
(
string
=
u'Raz
o
n Social'
,
string
=
u'Raz
ó
n Social'
,
required
=
True
,
required
=
True
,
)
)
...
@@ -22,8 +22,8 @@ class trans_transportista(models.Model):
...
@@ -22,8 +22,8 @@ class trans_transportista(models.Model):
)
)
trans_pagina_web
=
fields
.
Char
(
trans_pagina_web
=
fields
.
Char
(
string
=
u'P
a
gina Web'
,
string
=
u'P
á
gina Web'
,
help
=
'Ingrese su p
a
gina web si es que posee'
,
help
=
'Ingrese su p
á
gina web si es que posee'
,
)
)
trans_nombre
=
fields
.
Char
(
trans_nombre
=
fields
.
Char
(
...
@@ -37,7 +37,7 @@ class trans_transportista(models.Model):
...
@@ -37,7 +37,7 @@ class trans_transportista(models.Model):
)
)
trans_categoria
=
fields
.
Selection
(
trans_categoria
=
fields
.
Selection
(
string
=
u'Categor
i
a'
,
string
=
u'Categor
í
a'
,
selection
=
[(
'p'
,
'Paga'
),
(
'np'
,
'No Paga'
)],
selection
=
[(
'p'
,
'Paga'
),
(
'np'
,
'No Paga'
)],
compute
=
''
,
compute
=
''
,
store
=
True
,
store
=
True
,
...
@@ -45,12 +45,12 @@ class trans_transportista(models.Model):
...
@@ -45,12 +45,12 @@ class trans_transportista(models.Model):
)
)
trans_telefono
=
fields
.
Integer
(
trans_telefono
=
fields
.
Integer
(
string
=
u'Tel
e
fono'
,
string
=
u'Tel
é
fono'
,
required
=
True
,
required
=
True
,
)
)
trans_email
=
fields
.
Char
(
trans_email
=
fields
.
Char
(
string
=
u'Correo Electr
o
nico'
,
string
=
u'Correo Electr
ó
nico'
,
)
)
trans_tipo_ent
=
fields
.
Selection
(
trans_tipo_ent
=
fields
.
Selection
(
...
@@ -61,7 +61,7 @@ class trans_transportista(models.Model):
...
@@ -61,7 +61,7 @@ class trans_transportista(models.Model):
trans_restriccion_elem
=
fields
.
Char
(
trans_restriccion_elem
=
fields
.
Char
(
string
=
u'Elementos que no transporta'
,
string
=
u'Elementos que no transporta'
,
help
=
'Aclarar aqu
i que elementos no transporta
si los hubiera'
,
help
=
'Aclarar aqu
í qué elementos no transporta,
si los hubiera'
,
)
)
trans_tipo
=
fields
.
Many2many
(
trans_tipo
=
fields
.
Many2many
(
...
@@ -86,7 +86,7 @@ class trans_transportista(models.Model):
...
@@ -86,7 +86,7 @@ class trans_transportista(models.Model):
trans_observ
=
fields
.
Text
(
trans_observ
=
fields
.
Text
(
string
=
u'Observaciones'
,
string
=
u'Observaciones'
,
help
=
u'Utilice este campo para agregar cualquier observaci
o
n que desee'
,
help
=
u'Utilice este campo para agregar cualquier observaci
ó
n que desee'
,
)
)
ejecutor
=
fields
.
Many2one
(
ejecutor
=
fields
.
Many2one
(
...
@@ -102,7 +102,7 @@ class trans_transportista(models.Model):
...
@@ -102,7 +102,7 @@ class trans_transportista(models.Model):
if
self
.
trans_cuit
==
0
:
if
self
.
trans_cuit
==
0
:
raise
exceptions
.
ValidationError
(
'Por favor ingrese el CUIT'
)
raise
exceptions
.
ValidationError
(
'Por favor ingrese el CUIT'
)
if
self
.
trans_telefono
==
0
:
if
self
.
trans_telefono
==
0
:
raise
exceptions
.
ValidationError
(
'Por favor ingrese el tel
e
fono'
)
raise
exceptions
.
ValidationError
(
'Por favor ingrese el tel
é
fono'
)
...
...
views/menu_vista.xml
View file @
353d8bf
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
action=
"hgt_transportar.trans_transportista_action_window"
/>
action=
"hgt_transportar.trans_transportista_action_window"
/>
<!-- menu Root -->
<!-- menu Root -->
<menuitem
name=
"Configuraci
o
n"
sequence=
'20'
id=
"hgt_transportar.menu_root_configurar"
groups=
"module_group_administrador"
/>
<menuitem
name=
"Configuraci
ó
n"
sequence=
'20'
id=
"hgt_transportar.menu_root_configurar"
groups=
"module_group_administrador"
/>
<!-- menu categories -->
<!-- menu categories -->
<menuitem
name=
"Tipos de Transporte"
id=
"hgt_transportar_config_tipo"
parent=
"hgt_transportar.menu_root_configurar"
/>
<menuitem
name=
"Tipos de Transporte"
id=
"hgt_transportar_config_tipo"
parent=
"hgt_transportar.menu_root_configurar"
/>
<!-- actions -->
<!-- actions -->
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<!-- menu categories -->
<!-- menu categories -->
<menuitem
name=
"Puntos de Retiro"
id=
"hgt_transportar_config_punto"
parent=
"hgt_transportar.menu_root_configurar"
/>
<menuitem
name=
"Puntos de Retiro"
id=
"hgt_transportar_config_punto"
parent=
"hgt_transportar.menu_root_configurar"
/>
<!-- actions -->
<!-- actions -->
<menuitem
name=
"Puntos de
r
etiro"
id=
"hgt_transportar_transportistas_punto_retiro"
parent=
"hgt_transportar_config_punto"
<menuitem
name=
"Puntos de
R
etiro"
id=
"hgt_transportar_transportistas_punto_retiro"
parent=
"hgt_transportar_config_punto"
action=
"hgt_transportar.trans_punto_retiro_action_window"
/>
action=
"hgt_transportar.trans_punto_retiro_action_window"
/>
</data>
</data>
...
...
views/transportista_vista.xml
View file @
353d8bf
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
<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"
/>
</group>
</group>
<group
col=
"2"
>
<group
col=
"2"
string=
"Datos de contacto"
>
<field
name=
"trans_telefono"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_telefono"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_email"
colspan=
"2"
/>
<field
name=
"trans_email"
colspan=
"2"
/>
<field
name=
"trans_pagina_web"
colspan=
"2"
/>
<field
name=
"trans_pagina_web"
colspan=
"2"
/>
<field
name=
"trans_logo"
colspan=
"2"
/>
<field
name=
"trans_logo"
colspan=
"2"
/>
</group>
</group>
<group
col=
"2"
>
<group
col=
"2"
string=
"Características del transporte"
>
<field
name=
"trans_tipo_ent"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_tipo_ent"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_tipo"
colspan=
"2"
/>
<field
name=
"trans_tipo"
colspan=
"2"
/>
<field
name=
"trans_restriccion_elem"
colspan=
"2"
/>
<field
name=
"trans_restriccion_elem"
colspan=
"2"
/>
...
...
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