From 7a50b3b057e17b689d945870449a2adde2b444bb Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 12 Aug 2014 16:08:30 +0200 Subject: [PATCH] [FIX] web: missing self initialisation The self is needed in the _value() method below, opw 608878 --- addons/web/static/src/js/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 30b381d8738..c09661f430d 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -466,6 +466,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea * Sets up search view's view-wide auto-completion widget */ setup_global_completion: function () { + var self = this; var autocomplete = this.$el.autocomplete({ source: this.proxy('complete_global_search'), select: this.proxy('select_completion'),