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 87684007
authored
2022-07-14 11:07:02 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'tmp2' into 'master'
Tmp2 See merge request
!1
2 parents
cc8507c8
ca83f34b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
models/transportista.py
views/transportista_vista.xml
models/transportista.py
View file @
8768400
...
...
@@ -151,7 +151,16 @@ class trans_transportista(models.Model):
string
=
'Elementos que no transporta'
)
viejo_db_id
=
fields
.
Integer
(
string
=
'Base de datos vieja'
,
default
=
0
,
readonly
=
True
)
origen_dato
=
fields
.
Selection
(
string
=
'Origen de los datos'
,
selection
=
[
(
'manual'
,
'Cargado a mano o generado por el cliente'
),
(
'excel'
,
'Generado desde el excel'
),
(
'viejo'
,
'Generado desde la base de dato vieja'
),
(
'mixto'
,
'Generado desde el excel y se agrega localidades desde db vieja'
)
],
readonly
=
True
,
default
=
"manual"
)
def
_compute_prev
(
self
):
...
...
views/transportista_vista.xml
View file @
8768400
...
...
@@ -13,6 +13,7 @@
<field
name=
"trans_tipo_ent"
/>
<field
name=
"trans_telefono"
/>
<field
name=
"trans_tipo"
/>
<field
name=
"origen_dato"
/>
</tree>
</field>
</record>
...
...
@@ -34,6 +35,7 @@
<field
name=
"trans_razon_social"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_cuit"
colspan=
"2"
required=
"1"
/>
<field
name=
"trans_no_trasnporta"
widget=
"many2many_tags"
/>
<field
name=
"viejo_db_id"
/>
</group>
<group
col=
"2"
string=
"Imagen"
>
<field
name=
"trans_logo_nombre"
invisible=
"1"
/>
...
...
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