[FIX] embed client: use done()
bzr revid: chs@openerp.com-20121114224426-nbp1zb9c2r2tcnn4
This commit is contained in:
parent
a161d749f8
commit
abdbd41a90
|
@ -1218,7 +1218,7 @@ instance.web.EmbeddedClient = instance.web.Client.extend({
|
|||
if (!self.action_id) {
|
||||
return;
|
||||
}
|
||||
return self.rpc("/web/action/load", { action_id: self.action_id }, function(result) {
|
||||
return self.rpc("/web/action/load", { action_id: self.action_id }).done(function(result) {
|
||||
var action = result;
|
||||
action.flags = _.extend({
|
||||
//views_switcher : false,
|
||||
|
|
Loading…
Reference in New Issue