[FIX] web: return _super deferred in start method
authorDenis Ledoux <dle@odoo.com>
Tue, 29 Jul 2014 17:43:56 +0000 (19:43 +0200)
committerDenis Ledoux <dle@odoo.com>
Tue, 29 Jul 2014 17:43:56 +0000 (19:43 +0200)
Forget to include the _super method in the deferred returned by the start function of the search view
See previous rev. 70605240a9e4e0279bd339c3d80cab3862a58abd

addons/web/static/src/js/search.js

index 0ee62d4..566179c 100644 (file)
@@ -782,7 +782,7 @@ instance.web.SearchViewDrawer = instance.web.Widget.extend({
 
     start: function() {
         var self = this;
-        if (this.searchview.headless) return this.searchview.ready;
+        if (this.searchview.headless) return $.when(this._super(), this.searchview.ready);
         var filters_ready = this.searchview.fields_view_get
                                 .then(this.proxy('prepare_filters'));
         return $.when(this._super(), filters_ready).then(function () {