mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_m2x_options: Search more always visible even if results below limit (#651)
This commit is contained in:
committed by
Pedro M. Baeza
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 = 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..."),
|
||||
|
||||
Reference in New Issue
Block a user