From: Frédéric van der Essen Date: Mon, 24 Feb 2014 14:41:43 +0000 (+0100) Subject: [IMP] point_of_sale: make the order flush timeout dependant on the number of orders... X-Git-Tag: InsPy_master01~208^2~253^2~9^2~4 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=95f2c5537d2e5ad95969cf7c12f799aeeccf5229;p=odoo%2Fodoo.git [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 --- 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 )