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 fad282ac
authored
2020-10-26 09:57:33 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
seguridad transportista
1 parent
9b18c18f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
models/__pycache__/punto_retiro.cpython-36.pyc
models/__pycache__/transportista.cpython-36.pyc
models/transportista.py
views/transportista_vista.xml
models/__pycache__/punto_retiro.cpython-36.pyc
View file @
fad282a
No preview for this file type
models/__pycache__/transportista.cpython-36.pyc
View file @
fad282a
No preview for this file type
models/transportista.py
View file @
fad282a
...
...
@@ -72,13 +72,13 @@ class trans_transportista(models.Model):
column2
=
'trans_transportista_id'
,
)
#
trans_pto_retiro = fields.Many2many(
#
string=u'Punto de Retiro',
#
comodel_name='trans.punto_retiro',
#
relation='pto_retiro_transportista_rel',
#
column1='trans_punto_retiro_id',
#
column2='trans_transportista_id',
#
)
trans_pto_retiro
=
fields
.
Many2many
(
string
=
u'Punto de Retiro'
,
comodel_name
=
'trans.punto_retiro'
,
relation
=
'pto_retiro_transportista_rel'
,
column1
=
'trans_punto_retiro_id'
,
column2
=
'trans_transportista_id'
,
)
trans_posee_ayu
=
fields
.
Boolean
(
string
=
u'Posee ayudantes de carga?'
,
...
...
@@ -88,6 +88,14 @@ class trans_transportista(models.Model):
string
=
u'Observaciones'
,
help
=
u'Utilice este campo para agregar cualquier observacion que desee'
,
)
ejecutor
=
fields
.
Many2one
(
string
=
'Ejecuta'
,
comodel_name
=
'res.users'
,
index
=
True
,
default
=
lambda
self
:
self
.
env
.
user
)
@api.one
@api.constrains
(
'trans_cuit'
,
'trans_telefono'
)
...
...
views/transportista_vista.xml
View file @
fad282a
...
...
@@ -40,7 +40,7 @@
<field
name=
"trans_tipo_ent"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_tipo"
colspan=
"2"
/>
<field
name=
"trans_restriccion_elem"
colspan=
"2"
/>
<
!-- <field name="trans_pto_retiro" colspan="2" /> --
>
<
field
name=
"trans_pto_retiro"
colspan=
"2"
/
>
<field
name=
"trans_posee_ayu"
colspan=
"2"
/>
<field
name=
"trans_observ"
colspan=
"2"
/>
</group>
...
...
@@ -70,6 +70,7 @@
<field
name=
"name"
>
Transportista
</field>
<field
name=
"res_model"
>
trans.transportista
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"domain"
>
[["ejecutor","=",uid]]
</field>
</record>
</data>
...
...
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