Browse Source

[IMP] do not call search_read if no fields are set

pull/283/merge
Sylvain LE GAL 7 years ago
parent
commit
765c0c4670
  1. 3
      web_dashboard_tile/models/tile_tile.py

3
web_dashboard_tile/models/tile_tile.py

@ -157,7 +157,8 @@ class TileTile(models.Model):
return
fields = [f.name for f in [
self.primary_field_id, self.secondary_field_id] if f]
read_vals = model.search_read(eval(domain, eval_context), fields)
read_vals = fields and\
model.search_read(eval(domain, eval_context), fields) or []
for f in ['primary_', 'secondary_']:
f_function = f+'function'
f_field_id = f+'field_id'

Loading…
Cancel
Save