summaryrefslogtreecommitdiff
path: root/addons/web/tests/__init__.py
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-10-10 11:08:51 +0200
committerfw-bot <otis@odoo.com>2019-10-16 15:49:49 +0000
commit645ae69bb94bb810c7afc031d9eee9e89784a3df (patch)
tree3801aa12b1a4419b03b03c84b154ec6bb9cb246e /addons/web/tests/__init__.py
parente76c65e8b4a75df13e00f2b44e297deafa9e51e4 (diff)
[FIX] web: Correctly aggregate values in exported parent groups
When exporting a grouped list view with some nested groups, the aggregate value of parent groups are not correct. It always sums aggregated values of children whether the group operator is 'sum' or not (could be 'max', 'avg', ...). This behavior is wrong and can even lead to a crash if the aggregated field is a date field (e.g. with group_operator='max'). (Try two sum two dates...) The quick fix 85cf47f was merged just before OXP to avoid any crash. This fix limited the support of aggregates to only int and float fields. This commit remove this limitation. This commit correclty implements the aggregation for parent group for all field types and all group_operator. This commit also improves the export feature tests. X-original-commit: 5e7e4fa98698967e3c4fd0903f4aa8e91981a6cd
Diffstat (limited to 'addons/web/tests/__init__.py')
-rw-r--r--addons/web/tests/__init__.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/web/tests/__init__.py b/addons/web/tests/__init__.py
index b479a574e46..1ed329bafe1 100644
--- a/addons/web/tests/__init__.py
+++ b/addons/web/tests/__init__.py
@@ -6,4 +6,3 @@ from . import test_js
from . import test_menu
from . import test_serving_base
from . import test_click_everywhere
-from . import test_export