diff options
| author | lejeune quentin <qle@odoo.com> | 2020-09-02 15:07:58 +0000 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2020-09-02 15:23:03 +0000 |
| commit | 13367ebd673c6941c8e06d99f2b66ca535ab4b3b (patch) | |
| tree | 25d2f7ef71230cb752bb036e6e7826242a25c85c /addons | |
| parent | 4d88f892c8d4cdcb77a7680e772a70e0c0a51241 (diff) | |
[FIX] point_of_sale: Fix delay barcode scanner
When we make a request to /hw_proxy/sanner there are a timeout of 7,5 sec
After this timeout we wait for 5 sec before send another request.
And we clean the queue of barcode in IoT Box after 5 sec.
So if a cashier scan a product between this "gap" the product is not added to the POS
With this commit we remove the delay before send another request.
closes odoo/odoo#56973
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/static/src/js/barcode_reader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/barcode_reader.js b/addons/point_of_sale/static/src/js/barcode_reader.js index 52e5c649942..10f5b9a2b85 100644 --- a/addons/point_of_sale/static/src/js/barcode_reader.js +++ b/addons/point_of_sale/static/src/js/barcode_reader.js @@ -141,7 +141,7 @@ var BarcodeReader = core.Class.extend({ self.remote_active = 0; return; } - setTimeout(waitforbarcode,5000); + waitforbarcode(); }); } waitforbarcode(); |
