diff options
| author | Christophe Simonis <chs@openerp.com> | 2011-12-16 15:26:53 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2011-12-16 15:26:53 +0100 |
| commit | 2bab49cd860fe07cf622d15b19fb2baa54bcf950 (patch) | |
| tree | 314669259c0fefd73e95477fe8f86b63f00f6eef /addons/web/static/src/js/core.js | |
| parent | a49cd4e0a3d5f719e841828cb9baba3055ced073 (diff) | |
[FIX] allow users to not connect
bzr revid: chs@openerp.com-20111216142653-kjernr0c6sr6h0h2
Diffstat (limited to 'addons/web/static/src/js/core.js')
| -rw-r--r-- | addons/web/static/src/js/core.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index 2c3f9d3793b..7f2775c0264 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -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. * |
