summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-04-24 15:03:27 +0200
committerAdrien Dieudonné <adr@odoo.com>2018-04-25 09:11:10 +0200
commit7b6744ecb78106bca3daa23d4ded490c43479703 (patch)
tree9b6b9e561cd079640480ff60f1c230f9ecac50c9 /addons/web/static/src/js/views/basic
parente6e07ec1a3d8c5b9c64dac053f45d808b29fca28 (diff)
[FIX] web: pivot race condition load data
When doing several grouping quickly (or if the system is slow) on the pivot view, we may try to display data that now doesn't corresponds to the current selected groupBys. This commit ensures that when we load data of the pivot view, we drop the previous data loading that are currently being carried out. Without the fix, the added test failed with: TypeError: Cannot read property 'length' of undefined because the test does: - select one level of group by - select two levels of group by - resolve the first level of group by - resolve the second level of group by Without the fix, we would try to display the data for one level of group by when the pivot view had two levels selected. With the fix, displaying the first level of group by was discarded once a second one was being requested. opw-1825892 closes #24396
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions