[HACK] window.location will end pending rpc calls triggering the crashmanager. Used a hack

bzr revid: fme@openerp.com-20120927131333-0wrccue8jbetkwmj
This commit is contained in:
Fabien Meghazi
2012-09-27 15:13:33 +02:00
parent 1319a9423a
commit c962e0100d
@@ -63,6 +63,11 @@ instance.auth_oauth2_provider.ProviderAction = instance.web.Widget.extend({
new_params.state = params.state;
}
var redirect = params.redirect_uri + (a.hash ? '&' : '#') + $.param(new_params);
// Hack in order to avoid pending request failure notification
// TODO: a stop() method on webclient wich will return a deferred resolved when pending
// rpc calls are done
instance.session.on_rpc_error = function() { };
window.location = redirect;
},
error: function(msg) {