summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-04-23 18:05:57 -0700
committerJoren Van Onder <jov@odoo.com>2017-04-23 19:17:35 -0700
commit272e2cb0482b2250a6c54de1c8928d274c6a0b94 (patch)
treed7105bd0c4c9703bbc6cd0108429058d93a394c0 /addons/web/static/src/js/views/basic/basic_model.js
parent817fafb66f7803cab2e426d8ae8287b5805263a1 (diff)
[FIX] point_of_sale,pos_*: correct arguments of rpc fail callbacks
The introduction of the new RPC framework (see 0df9968433389e0d504276cd711473c2eef937ae, e5740270568404d71a3bc093074a085c9c2eded8 and 2106e3dd2ecd61096d7c7531c2f18b00fb30aeea) replaced RPC calls made with web.DataModel by web.rpc. The arguments in the fail callbacks for these are different. For web.DataModel an error object and a jQuery event are passed. The jQuery event had to be DefaultPrevented to avoid web.session from trying to show a traceback dialog. For web.rpc an error type and an error object are passed. This caused errors because the code was calling preventDefault on the error object. Because it bypasses web.session entirely a traceback dialog is never shown, so we don't have to worry about preventing it anymore.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions