From 95f2c5537d2e5ad95969cf7c12f799aeeccf5229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Mon, 24 Feb 2014 15:41:43 +0100 Subject: [PATCH] [IMP] point_of_sale: make the order flush timeout dependant on the number of orders to be flushed bzr revid: fva@openerp.com-20140224144143-4fhlswjk2y4skd6j --- addons/point_of_sale/static/src/js/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 90aa5fe..6c65b0b 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -457,7 +457,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal options = options || {}; var self = this; - var timeout = typeof options.timeout === 'number' ? options.timeout : 7500; + var timeout = typeof options.timeout === 'number' ? options.timeout : 7500 * orders.length; // we try to send the order. shadow prevents a spinner if it takes too long. (unless we are sending an invoice, // then we want to notify the user that we are waiting on something ) -- 1.7.10.4