diff options
| author | Florian Gilbert <flg@odoo.com> | 2019-09-26 12:43:44 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2019-09-27 09:19:38 +0000 |
| commit | 85cf47fc92629b2baa4e04dd08da6eabac3c9cba (patch) | |
| tree | 18cfafdc36183e5e8281d33aa8cde57df48bab2f /addons/web/controllers | |
| parent | ae2cbfa20f837ae1e6d66f880c0dada7f562af7f (diff) | |
[FIX] Web controllers: quick fix for just keep number in aggregated_values
Diffstat (limited to 'addons/web/controllers')
| -rw-r--r-- | addons/web/controllers/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 355ce5a9418..ade8e40a270 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -646,6 +646,11 @@ class GroupsTreeNode: count = group.pop('__count') aggregated_values = group + keys = list(aggregated_values) + for key in keys: + if not isinstance(aggregated_values[key], (int, float)): + del aggregated_values[key] + records = self._model.search(domain, offset=0, limit=False, order=False) # Follow the path from the top level group to the deepest |
