[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
This commit is contained in:
Frédéric van der Essen
2014-02-24 15:41:43 +01:00
parent 31cb4b8423
commit 95f2c5537d
+1 -1
View File
@@ -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 )