From 1bd6608df9bc2f400d219d232ae715e8c114379d Mon Sep 17 00:00:00 2001 From: Anael Closson Date: Thu, 5 Sep 2013 11:21:22 +0200 Subject: [PATCH 1/2] [FIX] OWP 593963 : limit results when opening "search more" as it's really slow when lot of records in database bzr revid: acl@openerp.com-20130905092122-47ynnssvvvo4aef2 --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index b9f1d91b700..c7314888703 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2934,7 +2934,7 @@ instance.web.form.CompletionFieldMixin = { values.push({ label: _t("Search More..."), action: function() { - dataset.name_search(search_val, self.build_domain(), 'ilike', false).done(function(data) { + dataset.name_search(search_val, self.build_domain(), 'ilike', 160).done(function(data) { self._search_create_popup("search", data); }); }, From dbedded58e3db57e3532dbc7cc0881e3c9fd0fa0 Mon Sep 17 00:00:00 2001 From: Anael Closson Date: Thu, 5 Sep 2013 17:58:17 +0200 Subject: [PATCH 2/2] [FIX] OPW 597162 : context not properly retreived and therefore not sent when retreiving o2m and m2m lines lp bug: https://launchpad.net/bugs/1217374 fixed bzr revid: acl@openerp.com-20130905155817-llmjnsmd252q3286 --- addons/web/static/src/js/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 679afe77bcd..e535be294aa 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -432,7 +432,7 @@ instance.web.DataSet = instance.web.Class.extend(instance.web.PropertiesMixin, // TODO: reorder results to match ids list return this._model.call('read', [ids, fields || false], - {context: this._model.context(options.context)}); + {context: this.get_context(options.context)}); }, /** * Read a slice of the records represented by this DataSet, based on its