apps fix destroy
bzr revid: al@openerp.com-20121219203058-4kb5urrb8rca8eti
This commit is contained in:
parent
2370566ca0
commit
fb34208b68
|
@ -80,12 +80,10 @@ openerp.base = function(instance) {
|
|||
}
|
||||
},
|
||||
|
||||
clean: function() {
|
||||
self.get_client().always(function(client) { client.destroy(); });
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this.clean();
|
||||
if (instance.base.apps_client) {
|
||||
instance.base.apps_client.destroy();
|
||||
}
|
||||
return this._super();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue