[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) <qle@odoo.com>
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
lejeune quentin
2020-08-19 13:41:10 +00:00
parent 6fba06f5b5
commit e694d7f03e
@@ -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 = ''