Skip to content

Commit

Permalink
🚑 commented barcode libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr committed Dec 10, 2019
1 parent 3586fae commit 1a2b58a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pos_qr_scan/static/src/js/qr_scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 1a2b58a

Please sign in to comment.