From 9cf6339b3e2fc489da067dbb878ccf2d2ed5446d Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Wed, 8 Jul 2015 08:17:16 +0200 Subject: [PATCH] [ADD] web: fields char and many2one can take an option barcode_events This allows to detect barcode scans while the focus is in such a field. It is not the default behaviour because buffering keystrokes to see if they are a barcode then releasing them if they aren't isn't trivial (it is impossible to trigger a native keyboard event). --- addons/web/static/src/xml/base.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index c79d9fc1f86..428a12db511 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -666,6 +666,7 @@