merge upstream
authorChristophe Simonis <chs@openerp.com>
Thu, 8 Nov 2012 16:34:58 +0000 (17:34 +0100)
committerChristophe Simonis <chs@openerp.com>
Thu, 8 Nov 2012 16:34:58 +0000 (17:34 +0100)
bzr revid: chs@openerp.com-20121108163458-wk7p4mf7fyh3winl

1  2 
addons/web/__openerp__.py
addons/web/static/src/js/chrome.js
addons/web/static/src/js/coresetup.js
addons/web/static/src/js/views.js

Simple merge
@@@ -1189,12 -1176,9 +1197,12 @@@ instance.web.EmbeddedClient = instance.
      },
      start: function() {
          var self = this;
-         return $.when(this._super()).pipe(function() {
-             return self.authenticate().pipe(function() {
+         return $.when(this._super()).then(function() {
 -            return instance.session.session_authenticate(self.dbname, self.login, self.key, true).then(function() {
 -                return self.rpc("/web/action/load", { action_id: self.action_id }).done(function(result) {
++            return self.authenticate().then(function() {
 +                if (!self.action_id) {
 +                    return;
 +                }
 +                return self.rpc("/web/action/load", { action_id: self.action_id }, function(result) {
                      var action = result;
                      action.flags = _.extend({
                          //views_switcher : false,
Simple merge
Simple merge