# -*- encoding: utf-8 -*-
##############################################################################
#
#    Hardware Customer Display module for Odoo
#    Copyright (C) 2014 Akretion (http://www.akretion.com)
#    @author Alexis de Lattre <alexis.delattre@akretion.com>
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################


{
    'name': 'Hardware Customer Display',
    'version': '8.0.0.1.0',
    'category': 'Hardware Drivers',
    'license': 'AGPL-3',
    'summary': 'Adds support for Customer Display in the Point of Sale',
    'description': """
Hardware Customer Display
=========================

This module adds support for Customer Display in the Point of Sale.
This module is designed to be installed on the *POSbox* (i.e. the
proxy on which the USB devices are connected) and not on the main
Odoo server. On the main Odoo server, you should install the module
*pos_customer_display*.

The configuration of the hardware is done in the configuration file of
the Odoo server of the POSbox. You should add the following entries in
the configuration file:

* customer_display_device_name (default = /dev/ttyUSB0)
* customer_display_device_rate (default = 9600)
* customer_display_device_timeout (default = 2 seconds)

The number of cols of the Customer Display (usually 20) should be
configured on the main Odoo server, in the menu Point of Sale >
Configuration > Point of Sales. The number of rows is supposed to be 2.

It should support most serial and USB-serial LCD displays out-of-the-box
or with inheritance of a few functions.

It has been tested with:

* Bixolon BCD-1100 (Datasheet :
  http://www.bixolon.com/html/en/product/product_detail.xhtml?prod_id=61)
* Bixolon BCD-1000

To setup the BCD-1100 on Linux, you will find some technical instructions
on this page:
http://techtuxwords.blogspot.fr/2012/12/linux-and-bixolon-bcd-1100.html

If you have a kernel >= 3.12, you should also read this:
http://www.leniwiec.org/en/2014/06/25/ubuntu-14-04lts-how-to-pass-id-ven
dor-and-id-product-to-ftdi_sio-driver/

This module has been developped during a POS code sprint at Akretion
France from July 7th to July 10th 2014. This module is part of the POS
project of the Odoo Community Association http://odoo-community.org/.
You are invited to become a member and/or get involved in the
Association !

This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
    """,
    'author': "Akretion,Odoo Community Association (OCA)",
    'website': 'http://www.akretion.com',
    'depends': ['hw_proxy'],
    'external_dependencies': {
        'python': ['serial', 'unidecode'],
    },
    'data': [],
}

@@ -1077,16 +1077,21 @@
  Display
+ BA6X
 ',%0A    '
@@ -1216,32 +1216,37 @@
 ustomer Display 
+BA6x 
 in the Point of 
@@ -1300,16 +1300,34 @@
  Display
+ - Wincor Nixdorf 
 %0A=======
@@ -1345,17 +1345,16 @@
 =======%0A
-%0A
 This mod
@@ -1361,21 +1361,16 @@
 ule 
-adds 
 support 
 for 
@@ -1369,1894 +1369,147 @@
 ort 
-for Customer Display in the Point of Sale.%0AThis module is designed to be installed on the *POSbox* (i.e. the%0Aproxy on which the USB devices are connected) and not on the main%0AOdoo server. On the main Odoo server, you should install the module%0A*pos_customer_display*.%0A%0AThe configuration of the hardware is done in the configuration file of%0Athe Odoo server of the POSbox. You should add the following entries in%0Athe configuration file:%0A%0A* customer_display_device_name (default = /dev/ttyUSB0)%0A* customer_display_device_rate (default = 9600)%0A* customer_display_device_timeout (default = 2 seconds)%0A%0AThe number of cols of the Customer Display (usually 20) should be%0Aconfigured on the main Odoo server, in the menu Point of Sale %3E%0AConfiguration %3E Point of Sales. The number of rows is supposed to be 2.%0A%0AIt should support most serial and USB-serial LCD displays out-of-the-box%0Aor with inheritance of a few functions.%0A%0AIt has been tested with:%0A%0A* Bixolon BCD-1100 (Datasheet :%0A  http://www.bixolon.com/html/en/product/product_detail.xhtml?prod_id=61)%0A* Bixolon BCD-1000%0A%0ATo setup the BCD-1100 on Linux, you will find some technical instructions%0Aon this page:%0Ahttp://techtuxwords.blogspot.fr/2012/12/linux-and-bixolon-bcd-1100.html%0A%0AIf you have a kernel %3E= 3.12, you should also read this:%0Ahttp://www.leniwiec.org/en/2014/06/25/ubuntu-14-04lts-how-to-pass-id-ven%0Ador-and-id-product-to-ftdi_sio-driver/%0A%0AThis module has been developped during a POS code sprint at Akretion%0AFrance from July 7th to July 10th 2014. This module is part of the POS%0Aproject of the Odoo Community Association http://odoo-community.org/.%0AYou are invited to become a member and/or get involved in the%0AAssociation !%0A%0AThis module has been written by Alexis de Lattre from Akretion%0A%3Calexis.delattre@akretion.com%3E.%0A    %22%22%22,%0A    'author': %22Akretion,Odoo Community Association (OCA)%22,%0A    'website': 'http://www.akretion.com'
+hardware display from  Wincor Nixdorf models BA6x, full%0Alanguage support, like cyrrilic and more.%0A    %22%22%22,%0A    'author': %22Rosen Vladimirov%22
 ,%0A  
@@ -1589,18 +1589,8 @@
 ': %5B
-'serial', 
 'uni

Update __openerp__.py