summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2018-06-13 15:21:24 +0200
committerAdrien Dieudonne <adr@odoo.com>2018-06-19 20:11:22 +0200
commitfc5d030ef2695f7d2daeb87db9697240be4b99d4 (patch)
tree3772caf00edbdbfd0a9c1882d7dfe6bd7b1072f4 /addons/web_editor/static
parentd3e2cf5585db75de584683e48e47b92559a743c4 (diff)
[FIX] web: checks rpc responses in web.ajax
Before this commit, load_action and load_views were never resolved in case of internet connection loss. It's because the call is triggered by web.rpc direcly who uses ajax.rpc without any response check. Now the rpc response is checked in web.ajax. Thereby all responses are handled whether they come from session.rpc or rpc.query. Plus, it was not the responsibility of the session to check the rpc responses. Steps to reproduce the issue: (1) load_action: - Go to the app switcher for the first time - Force disconnected from the network -> No notification appears and the user aren't notify (2) load_views (mobile only): - Go to Sales -> Quotation (In this case, the first call is 'load_views' because we need to force to load some views like kanban view) - Force disconnected from the network -> No notification appears and the user aren't notify Note: It's now important to notify the user about connection loss because a recent improvement in mobile app replaces the 'retry screen' and lets the webclient handle connection issues by itself. The single odoo mobile app is supposed to work with all databases from 10.0.
Diffstat (limited to 'addons/web_editor/static')
0 files changed, 0 insertions, 0 deletions