Commit ee0abe0e by juan

Correccion carga de imagenes

1 parent fdc2a386
......@@ -186,6 +186,7 @@ class hgt_soporte_incidencia(models.Model):
'in_id_si': self.id,
'cliente_URL': URL_local,
'database': database,
'estado':"abierta",
'usuario': self.si_responsable.display_name,
'archivos':self.archivos,
'UID':self.env.user.id,
......@@ -288,8 +289,8 @@ class hgt_soporte_incidencia(models.Model):
}
}
print(datos_json)
datos_json = json.dumps(datos)
print(datos_json)
f = requests.post(f"{HgtUrlBase}soporteIncidencias/crear", data=datos_json, headers=headers)
......
......@@ -55,7 +55,7 @@
<!--<sheet>-->
<header>
<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' :[('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'])] }"/>
<field name="estado" widget="statusbar" readonly="1"/>
<field name="si_cerrada" 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!