Skip to content
Snippets Groups Projects
Commit 6963a016 authored by lejeune quentin's avatar lejeune quentin
Browse files

[FIX] iot: Fix support of device with protocol 0


The self don't contain 'interface_protocol'.
The 'interface_protocol' is in self.dev because we add this in 'supported' function.

closes odoo/odoo#40118

Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
parent e29c0896
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class KeyboardUSBDriver(Driver):
if (self.dev.idVendor == device.info.vendor) and (self.dev.idProduct == device.info.product):
self.input_device = device
if 'barcode' in self._device_name.lower() or 'scanner' in self._device_name.lower() or self.interface_protocol == '0':
if 'barcode' in self._device_name.lower() or 'scanner' in self._device_name.lower() or self.dev.interface_protocol == '0':
self._device_type = 'scanner'
self._barcodes = Queue()
self._current_barcode = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment