Skip to content

Commit a9128a6

Browse files
committed
[IMP] Use same limit in get_search_result as in upstream
1 parent 364658c commit a9128a6

File tree

1 file changed

+3
-3
lines changed
  • web_m2x_options/static/src/js

1 file changed

+3
-3
lines changed

web_m2x_options/static/src/js/form.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
193193
values.push({
194194
label: _t("Search More..."),
195195
action: function () {
196-
// limit = 80 for improving performance, similar
196+
// limit = 160 for improving performance, similar
197197
// to Odoo implementation here:
198-
// https://github.com/odoo/odoo/commit/8c3cdce539d87775b59b3f2d5ceb433f995821bf
198+
// https://github.com/odoo/odoo/blob/feeac2a4f1cd777770dd2b42534904ac71f23e46/addons/web/static/src/js/views/form_common.js#L213
199199
dataset.name_search(
200200
search_val, self.build_domain(),
201-
'ilike', 80).done(function (data) {
201+
'ilike', 160).done(function (data) {
202202
self._search_create_popup("search", data);
203203
});
204204
},

0 commit comments

Comments
 (0)