summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/src/js/field_float_scannable.js
AgeCommit message (Collapse)Author
2016-01-04[FIX] barcode: value representation for scannable field floatArthur Maniet
The value was stored as a string when it should have been a float. opw-665376
2015-09-03[ADD] stock_barcode: field widget with barcodes scan + manual inputArthur Maniet
Barcodes are detected by catching keypresses. When a keypress is not part of a barcode, it is 'released' by forging a keypress event. For security reasons, a non-native keypress doesn't trigger the native input mechanism. So in order to make both barcode-scanning and manual keypresses work in a field, it is necessary to have a handler listen to the 'false' keypresses and simulate the native input behaviour.