[MERGE] [FIX] search: make sure search view is not destroyed when starting SearchView widget

This avoids getting the error 'Cannot call method 'getParent' of undefined'

lp bug: https://launchpad.net/bugs/1178289 fixed

bzr revid: mat@openerp.com-20140205102107-5ggbbkyr172855uu
This commit is contained in:
Martin Trigaux 2014-02-05 11:21:07 +01:00
commit ea3c17a2e9
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
context: this.dataset.get_context(),
});
$.when(load_view).then(function (r) {
this.alive($.when(load_view)).then(function (r) {
return self.search_view_loaded(r)
}).fail(function () {
self.ready.reject.apply(null, arguments);