From 1a2b58aad752aa2d3aa8e61d90c1625b3338fdc4 Mon Sep 17 00:00:00 2001 From: KolushovAlexandr Date: Tue, 10 Dec 2019 20:03:57 +0500 Subject: [PATCH] :ambulance: commented barcode libraries --- pos_qr_scan/static/src/js/qr_scan.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pos_qr_scan/static/src/js/qr_scan.js b/pos_qr_scan/static/src/js/qr_scan.js index 0fbc18c1e1..25c8a8f6d8 100644 --- a/pos_qr_scan/static/src/js/qr_scan.js +++ b/pos_qr_scan/static/src/js/qr_scan.js @@ -58,16 +58,16 @@ odoo.define('pos_qr_scan', function(require){ }, decoder : { readers : [ - "code_128_reader", + // "code_128_reader", "ean_reader", - "ean_8_reader", - "code_39_reader", - "code_39_vin_reader", - "codabar_reader", - "upc_reader", - "upc_e_reader", - "i2of5_reader", - "code_93_reader", + // "ean_8_reader", + // "code_39_reader", + // "code_39_vin_reader", + // "codabar_reader", + // "upc_reader", + // "upc_e_reader", + // "i2of5_reader", + // "code_93_reader", ] } }, function(err) { @@ -161,6 +161,10 @@ odoo.define('pos_qr_scan', function(require){ } } else{ console.log("no navigator.mediaDevices.enumerateDevices" ); + this.pos.gui.show_popup('alert', { + title: _t('Error'), + body: _t('No Media Devices Found') + }); } }, generate_qr_scanner: function() {