mirror of https://github.com/OCA/web.git
[FIX] web_m2x_options: Search more always visible even if results below limit (#651)
parent
c31748d705
commit
42c458581d
|
@ -186,7 +186,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
||||||
search_more_undef = _.isUndefined(self.options.search_more) && _.isUndefined(self.view.ir_options['web_m2x_options.search_more']),
|
search_more_undef = _.isUndefined(self.options.search_more) && _.isUndefined(self.view.ir_options['web_m2x_options.search_more']),
|
||||||
search_more = self.is_option_set(self.view.ir_options['web_m2x_options.search_more']);
|
search_more = self.is_option_set(self.view.ir_options['web_m2x_options.search_more']);
|
||||||
|
|
||||||
if (values.length > self.limit && (can_search_more || search_more_undef || search_more)) {
|
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);
|
||||||
values.push({
|
values.push({
|
||||||
label: _t("Search More..."),
|
label: _t("Search More..."),
|
||||||
|
|
Loading…
Reference in New Issue