Imprimante à reçus (tickets de caisse)
Conseil matériel
Il est possible d'envoyer les reçus par courriel. Si le reçu est envoyé par courriel dans la majorité des cas, investir dans une imprimante à reçus n'est pas forcément nécessaire.
Cela dit, il peut être utile d’avoir une imprimante si les clients désirent une version papier.
- Option 1 : Utiliser une imprimante à reçus version USB compatible ESC/POS, par exemple la Epson TM-T20III, connectée au PC de caisse avec odoo-driver. Cette option est celle que nous préconisons.
- Pour cela il faut un PC de caisse installé sous Linux (Ubuntu 24.04 LTS). Une fois Ubuntu installé, nous pouvons faire la configuration nous-même à distance via DWService.
- Option 2 : Utiliser une imprimante à reçus version Ethernet, par exemple la Epson TM-T20II Ethernet, ou un autre modèle Epson ESC/POS Ethernet (voir la liste ici).
- Avec une imprimante à reçus type ESC/POS réseau, on peut connecter directement le point de vente Odoo avec l’imprimante par réseau. Il n'y a donc pas besoin d'une personne technique pour réaliser l'installation (procédure ci-dessous). Module nécessaire pour l’utilisation réseau :
pos_epson_printer - Cette option présente certains désavantages :
- Il faut que l’imprimante ait une adresse IP fixe (à configurer sur place, dépend du réseau local)
- Ne concerne que l’imprimante et le tiroir-caisse ; s’il y a d’autres périphériques à connecter (balance, terminal de paiement USB), il faudra utiliser la solution odoo-driver.
- Très difficile de diagnostiquer les problèmes à distance.
- Il faut bidouiller pour que Firefox accepte le certificat HTTPS auto-signé, et ceci expire au bout d’un moment (voir ici).
- Avec une imprimante à reçus type ESC/POS réseau, on peut connecter directement le point de vente Odoo avec l’imprimante par réseau. Il n'y a donc pas besoin d'une personne technique pour réaliser l'installation (procédure ci-dessous). Module nécessaire pour l’utilisation réseau :
- Option 3 : Utiliser une imprimante classique A4 en réseau (ou en USB) et imprimer le reçu via la fonction d’impression du navigateur. Dans ce cas, pas besoin d’odoo-driver ou d’une IoT Box. Cette option est la moins optimale car elle demande une étape supplémentaire au moment de l’impression et gaspille du papier car une grande partie des pages ne sont pas utilisées.
Une imprimante à reçus pour plusieurs caisses
Il existe plusieurs moyens de partager une même imprimante entre plusieurs caisses :
- Utiliser une imprimante ESC/POS réseau (voir option 2 ci-dessus) et encoder son adresse IP dans les configuration des caisses en question. C’est l’option la plus simple et celle que nous recommandons.
- Utiliser une imprimante ESC/POS USB (voir option 1 ci-dessus) et utiliser la caisse à laquelle elle est connectée comme intermédiaire (comme si c’était une IoT Box). Les caisses auxquelles l’imprimante n’est pas connectée doivent donc encoder l’adresse IP de la caisse à laquelle l’imprimante est connectée comme adresse d’IoT Box. Ceci fonctionne mais a plusieurs points d’attention :
- Ceci ne fonctionne que s’il n’y a aucun autre périphérique connecté sur l’ordinateur (balance, terminal de paiement USB), car on ne pourra accéder qu’aux périphériques de la caisse à laquelle l’imprimante est connectée.
- Ceci nécessite que l’ordinateur de caisse auquel l’imprimante est connecté soit allumé.
- Ceci demande qu’odoo-driver soit configuré en mode HTTPS, ce qui demande d’accepter le certificat auto-signé sur les autres caisses.
Configure an Epson TM-T20II as an Ethernet ePOS receipt printer
Introduction
This document explains how to configure an Epson TM-T20II as an Ethernet ePOS printer and use it as a receipt printer in Odoo 16.
First, it is important to know that the printer cannot be used over USB and Ethernet at the same time. It must be configured to use one or the other.
Configure the printer to use Ethernet
- Turn the printer off.
- Turn the printer on while holding the feed button down until it prints a status report.
- The “Interface” section will either state “USB” or “Wi-Fi & Ethernet”.
- If it already states “Wi-Fi & Ethernet”, continue to the next session.
- Go to “Mode Selection” by pressing the feed button for more than 1 second.
- Go to “3: Customize Value Settings” by pressing the feed button shortly 3 times, then pressing it for more than 1 second.
- Go to “17: Interface Selection“ by pressing the feed button shortly 17 times, then pressing it for more than 1 second.
- Select “1: Ethernet” by pressing the feed button shortly 1 time, then pressing it for more than 1 second.
- Either turn the printer off and on again, or press the feed button for more than 1 second 2 times to exit.
Connect to the printer with a web browser to configure it
The printer can either use DHCP or have a static IP address. To print the network configuration, while the printer is on, using a pointy object (like a pen), press and hold the small button between the ethernet port and the power socket. The “TCP/IP Status” section contains an “Acquiring” property. If it is set to “Auto”, it means that the printer is using DHCP, while “Manual” means that is uses a static IP address. The “TCP/IP Status” section also contains the IP address and the subnet mask.
It is possible to reset the network configuration of the printer to use a predefined static IP address by reaching the “Mode Selection” menu as explained in the previous section, then selecting “4: Interface Setup” (by pressing the feed button shortly 4 times, then pressing it for more than 1 second), then “1: Wi-Fi & Ethernet Setup” (by pressing the feed button shortly 1 time, then pressing it for more than 1 second), then “1: Initialize“ (by pressing the feed button shortly 1 time, then pressing it for more than 1 second).
If the printer is configured to use a static IP address, it has the following network settings by default:
- IP address:
192.168.192.168 - Subnet mask:
255.255.255.0
To connect to it, you need to configure your computer to use an IP address within the same IP range.
If the printer is configured to use DHCP and you cannot print the network configuration (as explained at the start of this section), here is how to find its IP address:
- Find the broadcast address of your network (with
ifconfig, it is the address marked asBcast; withip address, it is the address marked asbrd). - Ping the broadcast address:
ping -b <broadcast address> - Display the address resolution table:
arp -a - Find the IP address corresponding to the MAC address of the printer. It should also display as
TM-T20II-######.Member.Lanwhere######are the 6 last hexadecimal digits of its MAC address (in uppercase).
Once you know the IP address of the printer, connect to it with a web browser.
You will need to accept a self-signed certificate, and enter “epson” as username and as password.
To change the network configuration, go to the ”Configuration” > “Network” > “TCP/IP” section. To select between using DHCP or a static IP address, change the “Acquiring the IP Address” setting between “Auto” (DHCP) or “Manual” (static IP address), then save by clicking the “Send” button, then the “Reset” button.
Enable ePOS printing
- Connect to the web configuration interface of the printer (as explained in the previous section).
- Go to the ”Configuration” > “Network” > “ePOS-Print” section.
- Set “ePOS-Print” to “Enable”.
- Click on the “Send” button.
- Click on the “Reset” button.
Configure the point of sale in Odoo
- Go to the point of sale configuration either by clicking the 3-dots menu of the point of sale and clicking “Edit”, or by going to the point of sale settings, “Connected Devices” section.
- Check the “ePos Printer” checkbox.
- Enter the IP address of the printer.
- Save the changes.
Save the self-signed certificate in the web browser
Follow the instructions in the Odoo documentation.
No Comments