Skip to main content

Imprimante à ticket de caisse

Conseil matériel

Il est possible d'envoyer des tickets par emails. Si le ticket est envoyé par mail dans la majorité des cas, investir dans une imprimante à ticket 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 à tickets version ethernet, par exemple la Epson TMT 20/2 ethernet, ou Espson escpos ethernet.
    • Avec une imprimante à tickets type escpos 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 choses à connecter (balance, terminal de paiement fr), il faudra utiliser notre 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.
  • Option 3 : Utiliser une imprimante à tickets version usb, par exemple la Espson escpos usb, connectée au PC de caisse avec pywebdriver.
    • Pour cela il faut un PC de caisse installé sous linux. Nous pouvons faire la configuration nous-même à distance via dwservice. 

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

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`
*   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:

1.  Find the broadcast address of your network (with `ifconfig`, it is the address marked as `Bcast`; with `ip address`, it is the address marked as `brd`).
2.  Ping the broadcast address:
    ```
    ping -b <broadcast address>
    ```
3.  Display the address resolution table:
    ```
    arp -a
    ```
4.  Find the IP address corresponding to the MAC address of the printer.
    It should also display as `TM-T20II-######.Member.Lan` where `######` 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.

## Save the self-signed certificate in the web browser

Follow the [instructions in the Odoo documentation](https://www.odoo.com/documentation/16.0/applications/sales/point_of_sale/configuration/epos_ssc.html).