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

This commit is contained in:
Sylvain Calador
2015-04-29 16:50:56 +02:00
parent 4cab02c5cd
commit a57e4ff93b

View File

@@ -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);