Browse Source

Merge 50519d4de3 into ad79aa45cf

pull/1176/merge
Denis Roussel (ACSONE) 5 years ago
committed by GitHub
parent
commit
dcee3867c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      web_m2x_options/static/src/js/form.js

10
web_m2x_options/static/src/js/form.js

@ -191,12 +191,14 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
values.push({
label: _t("Search More..."),
action: function () {
// limit = 160 for improving performance, similar
// to Odoo implementation here:
// https://github.com/odoo/odoo/blob/feeac2a4f1cd777770dd2b42534904ac71f23e46/addons/web/static/src/js/views/form_common.js#L213
// As a search_read() is called at every pagination
// on tree view level, the limit is set to false.
// This avoid also to exclude in first search ids
// that could correspond to a default filter
// (search_default_...)
dataset.name_search(
search_val, self.build_domain(),
'ilike', 160).done(function (data) {
'ilike', false).done(function (data) {
self._search_create_popup("search", data);
});
},

Loading…
Cancel
Save