From d3da132e02843da2efc19f840126cf05619532b5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 6 Jan 2015 23:26:30 +0100 Subject: [PATCH] PEP8 --- hw_customer_display/__openerp__.py | 38 +++++++++++++++++------ hw_telium_payment_terminal/__openerp__.py | 33 ++++++++++++++++---- pos_customer_display/__openerp__.py | 27 +++++++++++----- pos_payment_terminal/__openerp__.py | 17 ++++++++-- 4 files changed, 89 insertions(+), 26 deletions(-) diff --git a/hw_customer_display/__openerp__.py b/hw_customer_display/__openerp__.py index 206decba..848f70fd 100644 --- a/hw_customer_display/__openerp__.py +++ b/hw_customer_display/__openerp__.py @@ -31,29 +31,49 @@ 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*. +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: +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. +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 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-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-vendor-and-id-product-to-ftdi_sio-driver/ +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 -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 ! +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/ -Please contact Alexis de Lattre from Akretion for any help or question about this module. +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 +. """, 'author': 'Akretion', 'website': 'http://www.akretion.com', diff --git a/hw_telium_payment_terminal/__openerp__.py b/hw_telium_payment_terminal/__openerp__.py index fcec8d33..ca408d52 100644 --- a/hw_telium_payment_terminal/__openerp__.py +++ b/hw_telium_payment_terminal/__openerp__.py @@ -31,16 +31,32 @@ Hardware Telium Payment Terminal ================================ -This module adds support for Payment Terminals using Telium protocol 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_payment_terminal*. +This module adds support for credit card reader and checks printers +using Telium protocol 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_payment_terminal*. -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: +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: * payment_terminal_device_name (default = /dev/ttyACM0) * payment_terminal_device_rate (default = 9600) -The Telium protocol is used by Ingenico and Sagem payment terminals. It is based on the Concert protocol, so it can probably work with payment terminals from other brands. This module implements the protocol E+ (and not the protocol E), so it requires a Telium Manager version 37783600 or superior. To get the version of the Telium Manager, press F > 0-TELIUM MANAGER > 2-Consultation > 4-Configuration > 2-Software > 1-TERMINAL > On Display > Telium Manager and then read the field *M20S*. +The Telium protocol is used by Ingenico and Sagem payment terminals. It +is based on the Concert protocol, so it can probably work with payment +terminals from other brands. This module implements the protocol E+ (and +not the protocol E), so it requires a Telium Manager version 37783600 +or superior. To get the version of the Telium Manager on an Ingenico +terminal press F > 0-TELIUM MANAGER > 2-Consultation > 4-Configuration +> 2-Software > 1-TERMINAL > On Display > Telium Manager and then read +the field *M20S*. -You will need to configure your payment terminal to accept commands from the POS. On an Ingenico reader, press F > 0-TELIUM MANAGER > 5-Initialization > 1-Parameters > Cash Connection and then select *On* and then *USB*. After that, you should reboot the terminal. +You will need to configure your payment terminal to accept commands +from the POS. On an Ingenico terminal press F > 0-TELIUM MANAGER > +5-Initialization > 1-Parameters > Cash Connection and then select *On* +and then *USB*. After that, you should reboot the terminal. This module has been successfully tested with: @@ -48,9 +64,14 @@ This module has been successfully tested with: * Ingenico EFTSmart2 2640 with Telim Manager version 37784503 * Ingenico i2200 cheque reader and writer -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 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 ! -Please contact Alexis de Lattre from Akretion for any help or question about this module. +This module has been written by Alexis de Lattre + from Akretion. """, 'author': 'Akretion', 'website': 'http://www.akretion.com', diff --git a/pos_customer_display/__openerp__.py b/pos_customer_display/__openerp__.py index 3f0a7c1e..584f3059 100644 --- a/pos_customer_display/__openerp__.py +++ b/pos_customer_display/__openerp__.py @@ -29,18 +29,29 @@ POS Customer Display ==================== -This module adds support for Customer Display in the Point of Sale. This module is designed to be installed on the *main Odoo server*. On the *POSbox*, you should install the module *hw_customer_display*. +This module adds support for Customer Display in the Point of Sale. This +module is designed to be installed on the *main Odoo server*. On the +*POSbox*, you should install the module *hw_customer_display*. -The number of rows and cols of the Customer Display (usually 2 x 20) should be configured on the main Odoo server, in the menu Point of Sale > Configuration > Point of Sales. +The number of rows and cols of the Customer Display (usually 2 x 20) +should be configured on the main Odoo server, in the menu Point of Sale +> Configuration > Point of Sales. -It has been tested with a Bixolon BCD-1100 (http://www.bixolon.com/html/en/product/product_detail.xhtml?prod_id=61), but should support most serial and USB-serial LCD displays out-of-the-box, cf the module *hw_customer_display* for more info. +It has been tested with a Bixolon BCD-1100 +(http://www.bixolon.com/html/en/product/product_detail.xhtml?prod_id=61), +but should support most serial and USB-serial LCD displays +out-of-the-box, cf the module *hw_customer_display* for more info. -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 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 ! """, 'author': 'Aurélien DUMAINE', 'depends': ['point_of_sale'], - 'data' : [ - 'pos_customer_display.xml', - 'customer_display_view.xml', - ], + 'data': [ + 'pos_customer_display.xml', + 'customer_display_view.xml', + ], } diff --git a/pos_payment_terminal/__openerp__.py b/pos_payment_terminal/__openerp__.py index 0595a779..ab46d83e 100644 --- a/pos_payment_terminal/__openerp__.py +++ b/pos_payment_terminal/__openerp__.py @@ -29,11 +29,22 @@ POS Payment Terminal ==================== -This module adds support for Payment Terminal in the Point of Sale. This module is designed to be installed on the *main Odoo server*. On the *POSbox*, you should install the module *hw_x* depending on the protocol implemented in your device. Ingenico and Sagem devices support the Telium protocol implemented in the *hw_telium_payment_terminal* module. +This module adds support for credit card reader and checks printer +in the Point of Sale. This module is designed to be installed on the +*main Odoo server*. On the *POSbox*, you should install the module +*hw_x* depending on the protocol implemented in your device. Ingenico +and Sagem devices support the Telium protocol implemented in the +*hw_telium_payment_terminal* module. -This module support two payment methods : cards and checks. The payment method should be configured on the main Odoo server, in the menu Point of Sale > Configuration > Payment Methods. +This module support two payment methods : cards and checks. The payment +method should be configured on the main Odoo server, in the menu Point +of Sale > Configuration > Payment Methods. -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 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 ! """, 'author': 'Aurélien DUMAINE', 'depends': ['point_of_sale'],