Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_soporte
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 7d4b4436
authored
2022-12-18 11:58:45 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Actualizo incidencias vista
1 parent
6aefefca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
models/incidencia.py
views/incidencia_view.xml
models/incidencia.py
View file @
7d4b443
...
...
@@ -458,12 +458,15 @@ class hgt_soporte_incidencia(models.Model):
val
[
"file_name"
]
=
adjunto
[
"file_name"
]
val
[
"fecha"
]
=
adjunto
[
"fecha"
]
val
[
"name"
]
=
adjunto
[
"name"
]
print
(
val
)
#
print(val)
self
.
env
[
"hgt.soporte_adjunto"
]
.
create
(
val
)
def
UrlBaseHGT
(
self
):
return
(
HgtUrlBase
)
def
ActualizarVista
(
self
):
pass
...
...
views/incidencia_view.xml
View file @
7d4b443
...
...
@@ -57,6 +57,7 @@
<button
name=
"AbrirLocal"
class=
"btn btn-success"
string=
"Abrir Incidencia local"
type=
"object"
attrs=
"{ 'invisible' :[('estado','!=', 'borrador')] }"
/>
<button
type=
"object"
name=
"enviarIncidencia"
string=
"Abrir y Notificar a HGT"
attrs=
"{ 'invisible' :['|',('subida','=', True),('estado','=', 'cerrada')] }"
class=
"oe_highlight"
/>
<button
name=
"CerrarIncidencia"
class=
"btn btn-danger"
string=
"Cerrar incidencia"
type=
"object"
attrs=
"{ 'invisible' :[('estado','in', ['borrador','cerrada'])] }"
/>
<button
name=
"ActualizarVista"
class=
"btn btn-info"
string=
"Actualizar vista"
type=
"object"
attrs=
"{ 'invisible' :[('estado','in', ['borrador','cerrada'])] }"
/>
<field
name=
"estado"
widget=
"statusbar"
readonly=
"1"
/>
<field
name=
"si_cerrada"
invisible=
"1"
/>
</header>
...
...
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