Commit 332e9fbd by Maria Agustina

234

1 parent 39984729
...@@ -65,15 +65,7 @@ class hgt_linea_tarea(models.Model): ...@@ -65,15 +65,7 @@ class hgt_linea_tarea(models.Model):
tot= horas*precio tot= horas*precio
record.subtotal = tot record.subtotal = tot
@api.onchange('inicio','cierre')
def onchange_dominio_tarea(self):
result = {}
result['domain'] = []
i = self.inicio
c = self.cierre
ids = self.env['hgt.tarea'].search([('inicio2', '>=', i),('cierre2', '<=', c)])
result['domain'] = {'tarea' : [('id', 'in', ids)]}
return result
......
...@@ -12,4 +12,6 @@ class hgt_tarea(models.Model): ...@@ -12,4 +12,6 @@ class hgt_tarea(models.Model):
liquidado = fields.Boolean( liquidado = fields.Boolean(
string=u'Liquidado?', string=u'Liquidado?',
) )
\ No newline at end of file \ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!