|
@ -26,15 +26,18 @@ import simplejson |
|
|
import time |
|
|
import time |
|
|
from threading import Thread, Lock |
|
|
from threading import Thread, Lock |
|
|
from Queue import Queue |
|
|
from Queue import Queue |
|
|
from unidecode import unidecode |
|
|
|
|
|
from serial import Serial |
|
|
|
|
|
import openerp.addons.hw_proxy.controllers.main as hw_proxy |
|
|
import openerp.addons.hw_proxy.controllers.main as hw_proxy |
|
|
from openerp import http |
|
|
from openerp import http |
|
|
from openerp.tools.config import config |
|
|
from openerp.tools.config import config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__) |
|
|
logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
from serial import Serial |
|
|
|
|
|
from unidecode import unidecode |
|
|
|
|
|
except (ImportError, IOError) as err: |
|
|
|
|
|
logger.debug(err) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CustomerDisplayDriver(Thread): |
|
|
class CustomerDisplayDriver(Thread): |
|
|
def __init__(self): |
|
|
def __init__(self): |
|
|