Browse Source

[FIX] web_m2x_options: Search more always visible even if results below limit (#651)

pull/517/head
David Vidal 6 years ago
committed by Pedro M. Baeza
parent
commit
42c458581d
  1. 2
      web_m2x_options/static/src/js/form.js

2
web_m2x_options/static/src/js/form.js

@ -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 = 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.push({
label: _t("Search More..."),

Loading…
Cancel
Save