Commit 7d4b4436 by Juan

Actualizo incidencias vista

1 parent 6aefefca
...@@ -458,12 +458,15 @@ class hgt_soporte_incidencia(models.Model): ...@@ -458,12 +458,15 @@ class hgt_soporte_incidencia(models.Model):
val["file_name"] = adjunto["file_name"] val["file_name"] = adjunto["file_name"]
val["fecha"] = adjunto["fecha"] val["fecha"] = adjunto["fecha"]
val["name"] = adjunto["name"] val["name"] = adjunto["name"]
print(val) #print(val)
self.env["hgt.soporte_adjunto"].create(val) self.env["hgt.soporte_adjunto"].create(val)
def UrlBaseHGT(self): def UrlBaseHGT(self):
return(HgtUrlBase) return(HgtUrlBase)
def ActualizarVista(self):
pass
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
<button name="AbrirLocal" class="btn btn-success" string="Abrir Incidencia local" type="object" attrs="{ 'invisible' :[('estado','!=', 'borrador')] }"/> <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 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="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="estado" widget="statusbar" readonly="1"/>
<field name="si_cerrada" invisible="1" /> <field name="si_cerrada" invisible="1" />
</header> </header>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!