diff options
| author | Arthur Maniet <arthurmaniet@me.com> | 2015-09-03 11:17:45 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-09-03 11:23:38 +0200 |
| commit | cdb30b507ae7d1cf7205e78e67f693de17bb90d3 (patch) | |
| tree | 427954027107802ad2fc05f8960a2984ad2add34 /addons/web/static/src | |
| parent | 27e237346d686e6a24e3865cb0877ab1ef43078a (diff) | |
[ADD] stock_barcode: field widget with barcodes scan + manual input
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.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/form_widgets.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 69731122f61..a7f6a9f050a 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -1663,6 +1663,7 @@ core.form_tag_registry.add('button', WidgetButton); return { FieldChar: FieldChar, + FieldFloat: FieldFloat, FieldMonetary: FieldMonetary, WidgetButton: WidgetButton }; |
