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 75af94db
authored
2022-11-27 20:30:51 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Mejora edicion, apertura local
1 parent
1ca58e38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
models/incidencia.py
views/incidencia_view.xml
models/incidencia.py
View file @
75af94d
...
...
@@ -165,7 +165,8 @@ class hgt_soporte_incidencia(models.Model):
#("entro a enviar incidencia y ahora el valor de ella es " + str(self.subida))
#print(frespuesta)
def
AbrirLocal
(
self
):
self
.
estado
=
"abierta"
def
GenerarToken
(
self
):
return
(
random
.
choice
(
TokensValidos
))
...
...
views/incidencia_view.xml
View file @
75af94d
...
...
@@ -53,14 +53,16 @@
<form>
<!--<sheet>-->
<header>
<button
type=
"object"
name=
"enviarIncidencia"
string=
"Subir Incidencia"
attrs=
"{ 'invisible' :[('subida','=', True)] }"
class=
"oe_highlight"
/>
<button
type=
"object"
name=
"enviarIncidencia"
string=
"Abrir y Notificar a HGT"
attrs=
"{ 'invisible' :[('subida','=', True)] }"
class=
"oe_highlight"
/>
<button
name=
"AbrirLocal"
class=
"btn btn-success"
string=
"Abrir Incidencia local"
type=
"object"
attrs=
"{ 'invisible' :[('estado','!=', 'borrador')] }"
/>
<field
name=
"estado"
widget=
"statusbar"
readonly=
"1"
/>
<field
name=
"si_cerrada"
invisible=
"1"
/>
</header>
<group
col=
"2"
string=
"Incidencia"
>
<field
name=
"si_name"
colspan=
"2"
/>
<!-- <field colspan="2" name="si_numero" readonly="1" /> -->
<field
colspan=
"2"
name=
"si_fecha"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"si_descripcion"
attrs=
"{'readonly':[
'|',('si_cerrada','=',True),('subida','=',True
)]}"
/>
<field
colspan=
"2"
name=
"si_descripcion"
attrs=
"{'readonly':[
('estado','!=', 'borrador'
)]}"
/>
<field
colspan=
"2"
name=
"estado"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"si_responsabilidad"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"subida"
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