[MERGE] adding timeout option to rpc calls

bzr revid: fva@openerp.com-20130712125158-63p24xm18zffpg86
This commit is contained in:
Frédéric van der Essen
2013-07-12 14:51:58 +02:00
+3
View File
@@ -1012,6 +1012,9 @@ instance.web.JsonRPC = instance.web.Class.extend(instance.web.PropertiesMixin, {
if (! options.shadow)
this.trigger('request', url, payload);
if (options.timeout)
url.timeout = options.timeout;
this.rpc_function(url, payload).then(
function (response, textStatus, jqXHR) {
if (! options.shadow)