forked from Techsystech/web
[IMP] Avoid to hide selection list if there are less than 7 options
parent
4cab02c5cd
commit
a57e4ff93b
|
@ -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…
Reference in New Issue