[FIX] allow users to not connect
authorChristophe Simonis <chs@openerp.com>
Fri, 16 Dec 2011 14:26:53 +0000 (15:26 +0100)
committerChristophe Simonis <chs@openerp.com>
Fri, 16 Dec 2011 14:26:53 +0000 (15:26 +0100)
bzr revid: chs@openerp.com-20111216142653-kjernr0c6sr6h0h2

addons/web/static/src/js/core.js

index 2c3f9d3..7f2775c 100644 (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.
      *