diff options
| author | lejeune quentin <qle@odoo.com> | 2019-12-09 09:54:35 +0000 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2019-12-09 09:56:47 +0000 |
| commit | 4bb7fa19f125a55a0a22b37f7de155681d5fb585 (patch) | |
| tree | 27b2dddb98777ba166f0073ee6f336b6c5daffb3 | |
| parent | 453e7ab3d5beee5e609c34240506672572dde716 (diff) | |
[FIX] hw_drivers: Fix detction method for printer
Actual IoT Box not detect correctly Epson TM-T88v.
Now we can detect printer even if name is 'Unknow'
closes odoo/odoo#41563
Taskid: 2153108
X-original-commit: 4c7a1d7a9ba2ad0fbdd92b3a73b0d6294cb6e4a3
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
| -rwxr-xr-x | addons/hw_drivers/controllers/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hw_drivers/controllers/driver.py b/addons/hw_drivers/controllers/driver.py index bb62f7fd91c..e0c73978cfb 100755 --- a/addons/hw_drivers/controllers/driver.py +++ b/addons/hw_drivers/controllers/driver.py @@ -397,7 +397,7 @@ class Manager(Thread): printer_devices = {} with cups_lock: devices = conn.getDevices() - for path in [printer_lo for printer_lo in devices if devices[printer_lo]['device-make-and-model'] != 'Unknown']: + for path in devices: if 'uuid=' in path: serial = sub('[^a-zA-Z0-9 ]+', '', path.split('uuid=')[1]) elif 'serial=' in path: |
