[MIG] hw_scanner : Migrated to new API.

This commit is contained in:
Rohan Patel
2016-08-04 12:37:08 +02:00
committed by Yannick Tivisse
parent d007e73f69
commit a5ccae0b9b
3 changed files with 10 additions and 14 deletions
-6
View File
@@ -1,10 +1,8 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Barcode Scanner Hardware Driver',
'version': '1.0',
'category': 'Point of Sale',
'sequence': 6,
'summary': 'Hardware Driver for Barcode Scanners',
@@ -20,8 +18,4 @@ point of sale module.
""",
'depends': ['hw_proxy'],
'external_dependencies': {'python': ['evdev']},
'test': [
],
'installable': True,
'auto_install': False,
}
@@ -1 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
+7 -8
View File
@@ -1,18 +1,17 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import os
import time
from os import listdir
from os.path import join
from threading import Thread, Lock
from select import select
from Queue import Queue, Empty
from select import select
from threading import Thread, Lock
import openerp
import openerp.addons.hw_proxy.controllers.main as hw_proxy
from openerp import http
from openerp.http import request
from openerp.tools.translate import _
from odoo import http
import odoo.addons.hw_proxy.controllers.main as hw_proxy
_logger = logging.getLogger(__name__)