Commit e01bb30d by juan

Horas insumidas

1 parent 363312a9
......@@ -93,6 +93,10 @@ class hgt_soporte_incidencia(models.Model):
default=lambda self: self.env.user.display_name,
readonly=True)
horas = fields.Float(string='Horas insumida por soporte',
readonly=True)
def registrar_mensaje(self, mens):
text = mens.si_mensaje
envia = mens.si_creador
......
......@@ -60,15 +60,16 @@
<field name="estado" widget="statusbar" readonly="1"/>
<field name="si_cerrada" invisible="1" />
</header>
<group col="2" string="Incidencia">
<group col="4" string="Incidencia">
<field name="si_name" colspan="2"/>
<!-- <field colspan="2" name="si_numero" readonly="1" /> -->
<field colspan="4" name="si_descripcion" attrs="{'readonly':[('estado','!=', 'borrador')]}"/>
<field colspan="2" name="si_fecha" readonly="1"/>
<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 name="usuario" readonly="1"/>
<field colspan="2" name="subida" invisible="1"/>
<field name="horas"/>
</group>
<group col="2" string="Mensajes">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!