Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
13556 Prikazi

I'm sorry but this is not a question but rather an answer for couple of questions that I found here and wanted to share my knowledge howto get customer display working.

I'm using Odoo version 10, Raspberry Pi 2 as posbox and Glancetron 8034 USB with my setup.


### For the posbox part ###

Connect to your posbox with SSH ssh pi@1.2.3.4 Password: raspberry

Switch to root user pi@raspberrypi:~ $ sudo su -

Remount / and /root_bypass_ramdisks with read and write options

root@raspberrypi:~# mount -o remount,rw /

root@raspberrypi:~# mount -o remount,rw /root_bypass_ramdisks

Edit /root_bypass_ramdisks/etc/rc.local file

root@raspberrypi:~# vi /root_bypass_ramdisks/etc/rc.local

Add these lines above the "exit 0" line

/sbin/modprobe ftdi_sio echo "1504 0011" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id

Install unidecode

root@raspberrypi:~# pip install unidecode

Download hw_customer_display module

root@raspberrypi:~# cd /home/pi/odoo/addons/

root@raspberrypi:/home/pi/odoo/addons# wget -O hw_customer_display.zip https://apps.odoo.com/loempia/download/hw_customer_display/8.0.0.1.0/2DdTzaKCamCQZiU10dp89t.zip?deps root@raspberrypi:/home/pi/odoo/addons# unzip hw_customer_display.zip

root@raspberrypi:/home/pi/odoo/addons# rm hw_customer_display.zip

Edit /root_bypass_ramdisks/etc/init.d/odoo file so that the module starts with posbox root@raspberrypi:/home/pi/odoo/addons# vi /root_bypass_ramdisks/etc/init.d/odoo

For the section:

function _start() {

    start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$USER --background --make-pidfile --exec $DAEMON -- --config $CONFIG --logfile $LOGFILE --load=web,hw_proxy,hw_posbox_homepage,hw_posbox_upgrade,hw_scale,hw_scanner,hw_escpos,hw_blackbox_be

}

Add hw_customer_display to the end of the module list:

function _start() {

    start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$USER --background --make-pidfile --exec $DAEMON -- --config $CONFIG --logfile $LOGFILE --load=web,hw_proxy,hw_posbox_homepage,hw_posbox_upgrade,hw_scale,hw_scanner,hw_escpos,hw_blackbox_be,hw_customer_display

}

Restart posbox root@raspberrypi:/home/pi/odoo/addons# reboot

## For the server part ###

Login to you server with SSH and switch to root user

Check your Odoo addons directory form odoo.conf

# cat /etc/odoo/odoo.conf | grep addons

Change to your addons directory

# cd /usr/lib/python2.7/site-packages/odoo/addons

Download the pos customer display module from https://www.odoo.com/apps/modules/10.0/pos_customer_display/ (please note the vesion)

# wget -O pos_customer_display-10.0.1.0.1.zip https://apps.odoo.com/loempia/download/pos_customer_display/10.0.1.0.1/6Ou4rK39usjTxaXJjW1ORQ.zip?deps

Extract the zip file and get rid of the downloaded file

# unzip pos_customer_display-10.0.1.0.1.zip

# rm pos_customer_display-10.0.1.0.1.zip

Open your browser your odoo and enable developer mode. In version 9 it can be found under your username -> about -> enable developer mode. In version 10 it is under settings -> Activate the developer mode.

Go to Apps and click Update Apps List -> Update Then clear the Apps filter form the search field and type customer and press enter.

Install POS Customer Display module.

Go to Point of Sale Under configuration select Point of Sale Select your POS name Make sure you have your posbox IP entered and select Customer Display. Also change the display character lenght if needed.

Save.

Tips!

If you have a problem with your display printing P at the first line for both lines, then disable the hw_scale module from loading in posbox. For disabling it see the part where hw_customer_display was added to /root_bypass_ramdisks/etc/init.d/odoo and just remove it from there.

Avatar
Opusti

Thank you very much for this contribution. But please split it in a question and add the corresponding answer. This way it is properly formatted and we can give you the well earned karma points :-)

Best Answer

Hello,


I stuck on point installing the unidecode using :

# pip install unidecode

When i wrote this command the error messages appears: (even if i type "sudo")

"-su: pip: command not found"

I tried to do : #sudo apt-get install python-pip

and many error messages shows up like directory not exist for many files, then i start creating files and folders where it's mentioned in the error message, and i created a "sources.list" and add the repo info inside and save it, i tried to install python-pip again and the error message said:

Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python-pip

when i run the command :

# apt-get update

It's start updating and downloading files until it stops with error said "no space available" (i have SD Card with 16GB).


Is there something missing i have to do ?! how i can download the pip so i can continue with this article.

Sorry i am new on all of this.


Thanks in advance.


Avatar
Opusti
Best Answer

Hello, did anybody successfully have both hw_scale and hw_customer_display working ?


Avatar
Opusti
Best Answer

Hi All,

Here is a complete document with screen shots to cover hardware setup for a retail shop using POSBOX.

http://www.erpstuff.com/forums/viewtopic.php?f=50&t=10794

thanks

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jan. 21
5485
0
dec. 17
3327
0
dec. 21
1681
1
sep. 21
2951
1
jul. 21
4684