forked from Techsystech/web
parent
21eee65a4e
commit
ee1e795a00
|
@ -235,9 +235,12 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
||||||
self.ir_options["web_m2x_options.search_more"]
|
self.ir_options["web_m2x_options.search_more"]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (values.length > self.limit) {
|
if (
|
||||||
|
(values.length > self.limit &&
|
||||||
|
(can_search_more || search_more_undef)) ||
|
||||||
|
search_more
|
||||||
|
) {
|
||||||
values = values.slice(0, self.limit);
|
values = values.slice(0, self.limit);
|
||||||
if (can_search_more || search_more_undef || search_more) {
|
|
||||||
values.push({
|
values.push({
|
||||||
label: _t("Search More..."),
|
label: _t("Search More..."),
|
||||||
action: function() {
|
action: function() {
|
||||||
|
@ -286,7 +289,6 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
||||||
classname: "o_m2o_dropdown_option",
|
classname: "o_m2o_dropdown_option",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
var create_enabled = self.can_create && !self.nodeOptions.no_create;
|
var create_enabled = self.can_create && !self.nodeOptions.no_create;
|
||||||
// Quick create
|
// Quick create
|
||||||
|
|
Loading…
Reference in New Issue