Browse Source

IMP implementation of iteration

pull/507/head
Nicolas Mac Rouillon 8 years ago
parent
commit
d75755dab5
  1. 4
      web_dashboard_tile/models/tile_tile.py

4
web_dashboard_tile/models/tile_tile.py

@ -144,12 +144,12 @@ class TileTile(models.Model):
@api.multi
def _compute_data(self):
eval_context = self._get_eval_context()
for rec in self:
if not rec.active:
return
model = self.env[rec.model_id.model]
eval_context = self._get_eval_context()
domain = rec.domain or '[]'
model = rec.env[rec.model_id.model]
try:
count = model.search_count(eval(domain, eval_context))
except Exception as e:

Loading…
Cancel
Save