summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-04-07 11:29:18 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-07 14:16:04 +0200
commit6859c8dacb4adeb24fdeab619a8f6e4fd48481a0 (patch)
tree4deb83c68e6d497681a2f34ce7a62a5ad97554fc /addons/web/static/src/js/framework/session_instance.js
parenta658b9030a0ce0dd0dbe5be3e4d9d5b532c159ac (diff)
[FIX] web_kanban: fix race condition in do_search
The do_search method still had a race condition because the read_slice method of datasets alter ids. So, what could happen is this: a long search is started, then a shorter search is started and ended before the first search is completed. The ui is rendered properly, but then the long search ends and alter the dataset. As a result, the Kanban view is broken (cannot open a record anymore because the dataset has the wrong ids). This commit fixes the issue by doing basically what the read_slice method did, except the ids altering part. However, it introduced a new problem for x2many kanban views: these kanban view don't have the same dataset, they have a datasetstatic. The naive substitution does not work, so I had to reintroduce the old method in X2ManyKanbanView.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions