diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-08 19:08:18 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-08 19:08:18 +0200 |
| commit | 013ce7f8895872a8388cb04a790b4348076c7d16 (patch) | |
| tree | 64e6fb5373b5bad8a26eeb91275b771476796aee /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 71419844b3ec052be3bf1250edc551f240a314bb (diff) | |
| parent | f2e105eeca409e55be0408edcc986b39fd026094 (diff) | |
[MERGE] forward port branch 11.0 up to f2e105eeca4
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
| -rw-r--r-- | addons/web/static/src/js/views/basic/basic_model.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/addons/web/static/src/js/views/basic/basic_model.js b/addons/web/static/src/js/views/basic/basic_model.js index 3936ff4112c..f7ef80cb2c6 100644 --- a/addons/web/static/src/js/views/basic/basic_model.js +++ b/addons/web/static/src/js/views/basic/basic_model.js @@ -3869,11 +3869,13 @@ var BasicModel = AbstractModel.extend({ }); } return $.when.apply($, defs).then(function () { - // generate the res_ids of the main list, being the concatenation - // of the fetched res_ids in each group - list.res_ids = _.flatten(_.map(arguments, function (group) { - return group ? group.res_ids : []; - })); + if (!options || !options.onlyGroups) { + // generate the res_ids of the main list, being the concatenation + // of the fetched res_ids in each group + list.res_ids = _.flatten(_.map(arguments, function (group) { + return group ? group.res_ids : []; + })); + } return list; }); }); |
