From a57e4ff93bc76d4b6966de8ccd5d544465a3fc31 Mon Sep 17 00:00:00 2001 From: Sylvain Calador Date: Wed, 29 Apr 2015 16:50:56 +0200 Subject: [PATCH] [IMP] Avoid to hide selection list if there are less than 7 options --- web_completion_search/static/src/js/view_form.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/web_completion_search/static/src/js/view_form.js b/web_completion_search/static/src/js/view_form.js index d7340a69..a84b91fd 100644 --- a/web_completion_search/static/src/js/view_form.js +++ b/web_completion_search/static/src/js/view_form.js @@ -1,16 +1,6 @@ openerp.web_completion_search = function(instance, local) { var _t = instance.web._t; - - instance.web.form.CompletionFieldMixin.init = function() { - if (this.field.type == 'many2many') { - this.limit = 0; - } else { - this.limit = 7; - } - this.orderer = new instance.web.DropMisordered(); - }; - instance.web.form.CompletionFieldMixin._search_create_popup = function(view, ids, context) { var self = this; var pop = new instance.web.form.SelectCreatePopup(this);