From e694d7f03edb56a560f75e775dff3f670657781c Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Wed, 19 Aug 2020 09:07:32 +0000 Subject: [PATCH] [FIX] iot: Add new protocol to detect Zebra pinter Some network Zebra printer are not detected because the protocol 'socket' is not supported. Now we add this protocol in the 'supported' function closes odoo/odoo#56146 X-original-commit: f7fa40bdbbd765caf8fe528fff949b4dccf3d8c2 Signed-off-by: Quentin Lejeune (qle) Signed-off-by: pimodoo --- addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py b/addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py index 431e262587e..7fd387f8a62 100644 --- a/addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py +++ b/addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py @@ -94,7 +94,7 @@ class PrinterDriver(Driver): def supported(cls, device): if device.get('supported', False): return True - protocol = ['dnssd', 'lpd'] + protocol = ['dnssd', 'lpd', 'socket'] if any(x in device['url'] for x in protocol) and device['device-make-and-model'] != 'Unknown' or 'direct' in device['device-class']: model = cls.get_device_model(device) ppdFile = ''