[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user