summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-24 15:19:27 +0100
committerXavier Morel <xmo@openerp.com>2012-01-24 15:19:27 +0100
commit084bf9fb3fee99f1049fc9e0a3865ad242edcfd0 (patch)
tree1caaaec3f70f55bf2b04332947189c8e174cd0e6 /addons/web/static/src/js/data.js
parentb39e6ae7f122c98afb79e5bcb4ced467f472cbc5 (diff)
[FIX] in m2o fields, abort previous name_get when new one (for same field) arrives in order to limit the number of requests in-flight
lp bug: https://launchpad.net/bugs/920884 fixed bzr revid: xmo@openerp.com-20120124141927-wznbkd2tf3mngq31
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index 0cf36fbf2f5..be7d707c91c 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -430,7 +430,9 @@ openerp.web.DataSet = openerp.web.OldWidget.extend( /** @lends openerp.web.Data
method: method,
domain_id: domain_index == undefined ? null : domain_index,
context_id: context_index == undefined ? null : context_index,
- args: args || []
+ args: args || [],
+ // FIXME: API which does not suck for aborting requests in-flight
+ aborter: this
}, callback, error_callback);
},
/**