From 513fad42a0bdebd5378fb9472bc7084e91435884 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 31 Jan 2018 12:41:31 +0100 Subject: [FIX] barcodes: delay between keys In order to detect if a barcode scanner is being used, we detect the delay between keypresses. The value is hardcoded to 55 ms. However, in the case of a bluetooth scanner, this delay is often not enough, resulting in an incorrect capture of the barcode. We add the config parameter `barcode.max_time_between_keys_in_ms` which allows the user to fine tune this delay for his hardware. opw-806398 --- addons/barcodes/models/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/barcodes/models/__init__.py') diff --git a/addons/barcodes/models/__init__.py b/addons/barcodes/models/__init__.py index ce467f9134f..7d377d5a2b1 100644 --- a/addons/barcodes/models/__init__.py +++ b/addons/barcodes/models/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- import barcodes import barcode_events_mixin +from . import ir_http -- cgit v1.2.3