Commit 75af94db by juan

Mejora edicion, apertura local

1 parent 1ca58e38
......@@ -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))
......
......@@ -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"/>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!