Imprimante à reçus (tickets de caisse)
Conseil matériel
Il est possible d'envoyer desles ticketsreçus par emails.courriel. Si le ticketreçu est envoyé par mailcourriel dans la majorité des cas, investir dans une imprimante à ticketreç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 A4 en réseau et imprimer le PDF de ticket de caisse. Dans ce cas, pas besoin d’une posbox ou posboxless. Option 2: Utiliser une imprimante àticketsreç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
ethernetEthernet, par exemple la EpsonTMTTM-T20II20/2 ethernet,Ethernet, ouEspsonunescposautreethernet.modèle Epson ESC/POS Ethernet (voir la liste ici).- Avec une imprimante à
ticketsreçus typeescposESC/POS réseau, on peut connecter directement le point de vente Odoo avec l’imprimante par réseau,seau.ilIl 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é
savantagessavantages :ilIl faut que l’imprimante ait une adresseipIP fixe (à configurer sur place, dépend du réseau local)neNe concerne que l’imprimante et le tiroir-caisse ; s’il y a d’autreschosespériphériques à connecter (balance, terminal de paiementfr)USB), il faudra utilisernotrela solution odoo-driver.trèTrès difficile de diagnostiquer les problèmes à distance.ilIl faut bidouiller pour quefirefoxFirefox accepte le certificathttpsHTTPS auto-signé, et ceci expire au bout d’unmoment.
moment (voir ici).
- Avec une imprimante à
- Option 3
: Utiliser une imprimanteàclassiqueticketsA4 enversionréseauusb,(ouparenexempleUSB) et imprimer le reçu via laEspsonfonctionescposd’impressionusb,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
aucommePCintermé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 caisseavecàpywebdriver.laquelle l’imprimante est connectée comme adresse d’IoT Box. Ceci fonctionne mais a plusieurs points d’attention :PourCecicelane fonctionne que s’ilfautn’yunaPCaucun 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
installéauquelsousl’imprimantelinux.estNousconnectépouvonssoit allumé. - Ceci
fairedemandelaqu’odoo-driverconfigurationsoitnous-mêmeconfiguréàendistancemodeviaHTTPS,dwservice.ce qui demande d’accepter le certificat auto-signé sur les autres caisses.
En 16.0, pour le moment, un message s'affiche disant que l’imprimante est hors ligne, mais c’est possible de le corriger.
Une imprimante à ticket pour plusieurs caisses
Un développement a été fait pour BEES coop en v12 afin d'utiliser une seule imprimante à ticket de caisse pour les 4 caisses, ce qui nécessite d'avoir une posbox ou une posboxless en plus à côté.
1) côte posbox[less] : charger le module hw_printer_network :
2) côté POS : installer le module pos_printer_network :
Configure an Epson TM-T20II as an Ethernet ePOS receipt printer
Introduction
## 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
1.
- Turn the printer off.
2. - Turn the printer on while holding the feed button down until it prints a status report.
3. - The “Interface” section will either state “USB” or “Wi-Fi & Ethernet”.
4. - If it already states “Wi-Fi & Ethernet”, continue to the next session.
5. - Go to “Mode Selection” by pressing the feed button for more than 1 second.
6. - Go to “3: Customize Value Settings” by pressing the feed button shortly 3 times, then pressing it for more than 1 second.
7. - Go to “17: Interface Selection“ by pressing the feed button shortly 17 times, then pressing it for more than 1 second.
8. - Select “1: Ethernet” by pressing the feed button shortly 1 time, then pressing it for more than 1 second.
9. - 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`*168 - Subnet mask:
`255.255.255.0`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:
1.
- Find the broadcast address of your network (with
`ifconfig`ifconfig, it is the address marked as`Bcast`Bcast; with`ip, it is the address marked asaddress`address`brd`brd).2. - 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.whereLan`Lan`######`######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
1.
- Connect to the web configuration interface of the printer (as explained in the previous section).
2. - Go to the ”Configuration” > “Network” > “ePOS-Print” section.
3. - Set “ePOS-Print” to “Enable”.
4. - Click on the “Send” button.
5. - Click on the “Reset” button.
##
Configure the point of sale in Odoo
1.
- 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.
2. - Check the “ePos Printer” checkbox.
3. - Enter the IP address of the printer.
4. - Save the changes.
##