Browse Source

[IMP] Avoid to hide selection list if there are less than 7 options

pull/129/head
Sylvain Calador 10 years ago
parent
commit
a57e4ff93b
  1. 10
      web_completion_search/static/src/js/view_form.js

10
web_completion_search/static/src/js/view_form.js

@ -1,16 +1,6 @@
openerp.web_completion_search = function(instance, local) { openerp.web_completion_search = function(instance, local) {
var _t = instance.web._t; 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) { instance.web.form.CompletionFieldMixin._search_create_popup = function(view, ids, context) {
var self = this; var self = this;
var pop = new instance.web.form.SelectCreatePopup(this); var pop = new instance.web.form.SelectCreatePopup(this);

Loading…
Cancel
Save