[FIX] allow users to not connect

bzr revid: chs@openerp.com-20111216142653-kjernr0c6sr6h0h2
This commit is contained in:
Christophe Simonis
2011-12-16 15:26:53 +01:00
parent a49cd4e0a3
commit 2bab49cd86
+8
View File
@@ -385,6 +385,14 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp.
this.ready = $.Deferred();
return this.session_init();
},
/**
* Called when a rpc call fail due to an invalid session.
* By default, it's a noop
*/
on_session_invalid: function(retry_callback) {
},
/**
* Executes an RPC call, registering the provided callbacks.
*