3
0
Fork 0

[12.0] web_m2x_options: fix always show search more

12.0
Anna Janiszewska 2021-03-18 13:20:24 +01:00
parent 86feea96e2
commit b37caf0d4c
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
search_more_undef = _.isUndefined(self.nodeOptions.search_more) && _.isUndefined(ir_options['web_m2x_options.search_more']),
search_more = is_option_set(ir_options['web_m2x_options.search_more']);
if (values.length > self.limit) {
if (values.length > self.limit || search_more) {
values = values.slice(0, self.limit);
if (can_search_more || search_more_undef || search_more) {
values.push({