summaryrefslogtreecommitdiff
path: root/addons/hw_proxy/controllers/main.py
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-03-28 10:57:35 +0100
committerAntoine Prieels <anp@odoo.com>2019-08-13 15:35:38 +0200
commit4e649a8ca99ccfdd5dda7334b2682c5287cbc731 (patch)
treec89ffdbad178b81be1f82641bca50d89b62887a1 /addons/hw_proxy/controllers/main.py
parent9790c81d5b1d0a265c75f191320cb4cb22dfbd27 (diff)
[REF] hw_{driver, scanner}: Barcode scanners as IoT Devices
Barcode scanners are now part of KeyboardUSBDriver. We also add the possibility to change the keyboard/scanner layout from an action. The list of available layout can be retrieved with a new route. `hw_scanner` has been removed. Backward compatibility is ensured because the name of the route that is now used in community is the same that was used previously. TaskID: 1939455
Diffstat (limited to 'addons/hw_proxy/controllers/main.py')
-rw-r--r--addons/hw_proxy/controllers/main.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/addons/hw_proxy/controllers/main.py b/addons/hw_proxy/controllers/main.py
index 33e20f8a76a..f67babef3d0 100644
--- a/addons/hw_proxy/controllers/main.py
+++ b/addons/hw_proxy/controllers/main.py
@@ -209,17 +209,6 @@ class Proxy(http.Controller):
def print_receipt(self, receipt):
print('print_receipt %s', receipt)
- @http.route('/hw_proxy/is_scanner_connected', type='json', auth='none', cors='*')
- def is_scanner_connected(self, receipt):
- print('is_scanner_connected?')
- return False
-
- @http.route('/hw_proxy/scanner', type='json', auth='none', cors='*')
- def scanner(self, receipt):
- print('scanner')
- time.sleep(10)
- return ''
-
@http.route('/hw_proxy/log', type='json', auth='none', cors='*')
def log(self, arguments):
_logger.info(' '.join(str(v) for v in arguments))