summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/list/list_model.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/addons/web/static/src/js/views/list/list_model.js b/addons/web/static/src/js/views/list/list_model.js
index 5d40343ef8d..5a8771c0da3 100644
--- a/addons/web/static/src/js/views/list/list_model.js
+++ b/addons/web/static/src/js/views/list/list_model.js
@@ -82,10 +82,17 @@ odoo.define('web.ListModel', function (require) {
self._parseServerData(fieldNames, record, record.data);
});
}).then(function () {
- return Promise.all([
- self._fetchX2ManysBatched(list),
- self._fetchReferencesBatched(list)
- ]);
+ if (!list.groupedBy.length) {
+ return Promise.all([
+ self._fetchX2ManysBatched(list),
+ self._fetchReferencesBatched(list)
+ ]);
+ } else {
+ return Promise.all([
+ self._fetchX2ManysSingleBatch(list),
+ self._fetchReferencesSingleBatch(list)
+ ]);
+ }
});
},