[FIX] web: missing self initialisation
authorMartin Trigaux <mat@openerp.com>
Tue, 12 Aug 2014 14:08:30 +0000 (16:08 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 12 Aug 2014 14:08:30 +0000 (16:08 +0200)
The self is needed in the _value() method below, opw 608878

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

index 30b381d..c09661f 100644 (file)
@@ -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'),