Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_incidencias
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 1644a781
authored
2021-07-08 19:15:35 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Andando, antes cambio estetico
1 parent
c4fb4d28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
controllers/controllers_incide.py
models/incidencias.py
models/mensajes.py
views/incidencias.xml
controllers/controllers_incide.py
View file @
1644a78
...
@@ -29,10 +29,10 @@ class controlador_incidencias(http.Controller):
...
@@ -29,10 +29,10 @@ class controlador_incidencias(http.Controller):
'in_id_si'
:
kw
[
"in_id_si"
],
'in_id_si'
:
kw
[
"in_id_si"
],
'url_sis_cliente'
:
url
,
'url_sis_cliente'
:
url
,
}
}
print
(
servicio
,
url
)
#
print(servicio, url)
print
(
val
)
#
print(val)
nva_inci
=
i_model
.
create
(
val
)
nva_inci
=
i_model
.
create
(
val
)
print
(
nva_inci
)
#
print(nva_inci)
if
servicio
:
if
servicio
:
cli
=
servicio
.
cliente
cli
=
servicio
.
cliente
nva_inci
.
cliente
=
cli
.
id
nva_inci
.
cliente
=
cli
.
id
...
...
models/incidencias.py
View file @
1644a78
...
@@ -179,8 +179,8 @@ class hgt_incidencias(models.Model):
...
@@ -179,8 +179,8 @@ class hgt_incidencias(models.Model):
def
registrar_mensaje
(
self
,
mens
):
def
registrar_mensaje
(
self
,
mens
):
text
=
mens
.
in_mensaje
text
=
mens
.
in_mensaje
envia
=
mens
.
in_creador
envia
=
mens
.
in_creador
_nombre
envia
=
envia
.
name
#
envia = envia.name
fecha
=
mens
.
in_mens_fecha
fecha
=
mens
.
in_mens_fecha
text_orig
=
self
.
in_historico_mensajes
text_orig
=
self
.
in_historico_mensajes
if
text_orig
:
if
text_orig
:
...
...
models/mensajes.py
View file @
1644a78
...
@@ -18,6 +18,7 @@ class hgt_incidencias_mensaje(models.Model):
...
@@ -18,6 +18,7 @@ class hgt_incidencias_mensaje(models.Model):
in_creador_nombre
=
fields
.
Char
(
in_creador_nombre
=
fields
.
Char
(
string
=
"Creador"
,
string
=
"Creador"
,
default
=
lambda
self
:
self
.
env
.
user
.
display_name
)
)
in_mens_fecha
=
fields
.
Datetime
(
in_mens_fecha
=
fields
.
Datetime
(
...
...
views/incidencias.xml
View file @
1644a78
...
@@ -79,9 +79,9 @@
...
@@ -79,9 +79,9 @@
<group>
<group>
<field
name=
"in_mensajes"
required=
"0"
nolabel=
"1"
>
<field
name=
"in_mensajes"
required=
"0"
nolabel=
"1"
>
<tree
delete=
"false"
create=
"false"
>
<tree
delete=
"false"
create=
"false"
>
<field
name=
"in_mens_fecha"
attrs=
"{'readonly': True}"
/>
<field
name=
"in_creador"
attrs=
"{'readonly': True}"
/>
<field
name=
"in_mensaje"
attrs=
"{'readonly': True}"
/>
<field
name=
"in_mensaje"
attrs=
"{'readonly': True}"
/>
<field
name=
"in_mens_fecha"
attrs=
"{'readonly': True}"
/>
<field
name=
"in_creador_nombre"
attrs=
"{'readonly': True}"
/>
</tree>
</tree>
</field>
</field>
</group>
</group>
...
...
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