[FIX] then -> done; pipe -> then
authorChristophe Simonis <chs@openerp.com>
Thu, 8 Nov 2012 16:56:08 +0000 (17:56 +0100)
committerChristophe Simonis <chs@openerp.com>
Thu, 8 Nov 2012 16:56:08 +0000 (17:56 +0100)
bzr revid: chs@openerp.com-20121108165608-e67f0dwwufdpfmzt

openerp/addons/base/static/src/js/apps.js

index 9102574..ebcf197 100644 (file)
@@ -20,7 +20,7 @@ openerp.base = function(instance) {
             i.onload = function() {
                 console.log('client is available', client);
 
-                client.session.session_bind(client.origin).then(function() {
+                client.session.session_bind(client.origin).done(function() {
                     // check if client can authenticate
                     client.authenticate().done(function() {
                         d.resolve(client);
@@ -51,7 +51,7 @@ openerp.base = function(instance) {
             var DEFAULT_SERVER = 'http://apps.v7.openerp.com:8069/apps';     // TEST
             //var DEFAULT_SERVER = 'http://localhost:8080/trunk_loempia7';        // DEV
             var ICP = new instance.web.Model('ir.config_parameter');
-            return ICP.call('get_param', ['loempia.server', DEFAULT_SERVER]).pipe(function(u) {
+            return ICP.call('get_param', ['loempia.server', DEFAULT_SERVER]).then(function(u) {
                 var link = $(_.str.sprintf('<a href="%s"></a>', u))[0];
                 var host = _.str.sprintf('%s//%s', link.protocol, link.host);
                 var dbname = link.pathname.substr(1);