Conectar una impresora

Instalar una impresora es muy fácil y toma solo un par de pasos. La impresora se puede usar para imprimir recibos, etiquetas, órdenes o incluso reportes de diferentes aplicaciones de Odoo. Además, puede asignar las acciones de una impresora como acciones en un activador durante los procesos de fabricación, así como agregarlas a un punto de control o revisión de calidad.

Advertencia

The only way to connect a printer directly to an Odoo database is through the use of an IoT system. Without an IoT system, printing can still occur, but it is managed through the printer itself, which is not the recommended process.

Conexión

IoT systems support printers connected through USB, network connection, or Bluetooth. Supported printers are detected automatically, and appear in the Devices list of the IoT app.

Una impresora como aparecería en la lista de dispositivos de la aplicación IoT.

Nota

Printers can take up to two minutes to appear in the IoT app Devices list.

Limpiar la caché del dispositivo de impresión

El caché del navegador almacena los ajustes anteriores después de vincular un reporte a una impresora. Un usuario puede tener distintos dispositivos guardados en su caché para otros reportes según el dispositivo que use para acceder a Odoo, además de que otros usuarios pueden imprimir los reportes desde distintas impresoras según sus preferencias.

To unlink a report from a printer, navigate to IoT ‣ Configuration ‣ Reset Linked Printers. This generates a list of reports that are linked to a printer on the current device. Click the Unlink button next to each report to remove the link.

Importante

Este paso solo evita que el reporte se imprima de forma automática en la impresora asignada desde el navegador actual. El reporte sigue vinculado al dispositivo en la pestaña Reportes de la impresora.

La lista de reportes actualmente vinculados a una impresora en la aplicación IoT.

Posibles problemas

No se detecta la impresora

If a printer does not appear in the devices list, go to the IoT box’s or Windows virtual IoT’s homepage, click Show in the Devices section, and make sure the printer is listed.

If the printer does not appear on the IoT system’s homepage, click Printer Server, then Administration, and Add Printer. If the printer is not in the list, it is likely not connected properly.

La impresora imprime texto aleatorio

Para la mayoría de las impresoras, el controlador correcto se detecta y selecciona de forma automática. Sin embargo, en algunos casos, es posible que el mecanismo de detección automática no sea suficiente, y si no encuentra ningún controlador, la impresora podría imprimir caracteres aleatorios.

The solution is to manually select the corresponding driver. On the IoT system’s homepage, click Printer Server, then Printers, and select the printer in the list. In the Administration dropdown menu, click Modify Printer. Follow the steps and select the printer’s make and model.

Edit the printer connected to the IoT system.

Nota

Las impresoras de recibos Epson y las impresoras de etiquetas Zebra no necesitan un controlador para funcionar. Asegúrese de que no se seleccionó ningún controlador para esas impresoras.

La impresora aparece pero no la reconoce con el tipo correcto

If Odoo and the IoT system do not recognize the printer correctly, go to IoT ‣ Devices, click the device’s card to access its form, and set the Subtype field to the appropriate option: Receipt Printer, Label Printer, or Office Printer.

Caso especial de uso de Epson

Most Epson printers support printing receipts in Odoo Point of Sale using the GS v 0 command. However, the following Epson printer models do not support this command:

  • TM-U220

  • TM-U230

  • TM-P60

  • TMP-P60II

To bypass this issue, you can configure the printer to use the ESC * command.

First, review Epson’s website for compatibility for both the GS v 0 and ESC * commands.

If the printer is incompatible with GS v 0 but supports ESC *, configure the IoT system to use the ESC * command as follows:

  1. Access the IoT box’s or Windows virtual IoT’s homepage.

  2. Click the Printer server button, then click Administration on the CUPS page.

  3. Click Add Printer in the Printers section, select the printer, and click Continue.

    Truco

    If the printer’s name is still uncertain, take the following steps:

    1. Take note of the listed printers on the CUPS page.

    2. Apague la impresora y vuelva a cargar la página.

    3. Compare the difference with the first list to see which printer disappeared.

    4. Vuelva a prender la impresora y recargue la página.

    5. Verifique de nuevo la lista para ver si la impresora vuelve a aparecer.

    6. The printer that disappeared and reappears again on the listed printers is the name of the printer in question. It can be Unknown under Local printers.

  4. On the Add Printer page, specify the printer’s Name using the following convention: <printer_name>__IMC_<param_1>_<param_2>_..._<param_n>__, where:

    • printer_name is the printer’s name. It can contain any character except _, /, #, or ` ` (space character).

    • IMC: Son las siglas de Image Mode Column (el nombre simplificado de ESC*).

    • param_1: representa el parámetro específico:

      • SCALE<X>: Scale of the picture (with the same aspect ratio). X should be an integer describing the scale percentage that should be used. For example, 100 is the original size, 50 is half the size, and 200 is twice the size.

      • LDV: Low Density Vertical (densidad vertical baja), se establecerá en High Density Vertical (densidad vertical alta) si no se especifica.

      • LDH: Low Density Horizontal (densidad horizontal baja), se establecerá en High Density Horizontal (densidad horizontal alta) si no se especifica.

      Nota

      • Density parameters might need to be configured in a particular way, depending on the printer model.

      • Refer to Epson’s ESC * documentation to determine if the printer requires these parameters to be set.

    Example

    Los siguientes son ejemplos de nombres con formato correcto e incorrecto:

    Formato correcto:

    • EPSONTMm30II__IMC__

    • EPSON_TM_U220__IMC_LDV_LDH_SCALE80__

    Formato incorrecto (no impedirá la impresión, pero el resultado podría no ser el esperado):

    • EPSON TMm 30II: The name cannot contain spaces.

    • EPSONTMm30II: The name itself is correct, but it will not use ESC *.

    • EPSONTMm30II__IMC: This name is missing the end __.

    • EPSONTMm30II__IMC_XDV__: The parameter XDV does not match any existing parameters.

    • EPSONTMm30II__IMC_SCALE__: The parameter SCALE is missing the scale value.

  5. Once the printer’s name has been defined using the appropriate naming convention, click Continue.

  6. Set the Make value to Raw and the Model value to Raw Queue (en).

  7. Click Add Printer. If everything was done correctly, the page should redirect to the Banners page.

  8. Wait a few minutes for the IoT system to detect the printer and sync to Odoo’s server.

  9. Access the POS settings and select your POS, or click the vertical ellipsis button () on a POS card and click Edit. Scroll down to the Connected Devices section, enable IoT Box, and select the printer in the Receipt Printer field. Click Save.

Nota

If the printer was set up incorrectly (e.g., it continues to print random text, or the printed receipt is too large or too small), it cannot be modified via the printer’s name in CUPS. Instead, configure a new printer from scratch with modified parameters, following the steps above.

El siguiente es un ejemplo del proceso de solución de problemas para el modelo TM-U220B con el comando ESC *. El recibo que aparece a continuación ejemplifica un recibo que se imprime correctamente debido al formato adecuado (en teoría):

Imagen de un recibo con un formato correcto impreso desde una base de datos de demostración.

Printing this receipt immediately without proper formatting will not work, as the TM-U220B printer model does not support the GS v 0 command. Instead, random characters will be printed:

Papel de impresora con caracteres aparentemente aleatorios.

To properly configure formatting for the Epson TM-U220B printer model, follow these steps:

  1. After checking Epson’s website for compatibility with both the GS v 0 and ESC * commands, the TM-U220B printer is indeed incompatible with GS v 0 but supports ESC *.

    Evaluación de compatibilidad de Epson en su sitio web.
  2. When adding the printer, CUPS displays the list of available printers:

    Selección para agregar impresora en el menú de administración.

    In this case, the printer is connected via USB, so it is not part of the Discovered Network Printers. Instead, it is likely part of the Unknown selection under Local Printers. By unplugging the printer’s USB cable from the IoT system and refreshing the page, the Unknown printer disappears. By plugging it back in, the printer reappears.

  3. For the naming convention, since the printer must print using the ESC * command, it is imperative to add __IMC.

    Especificaciones de la impresora Epson TM-U220 en el sitio web del fabricante.

    For this particular model (TM-U220) m should be equal to 0 or 1. While referencing the Description table on Epson’s ESC * website, the m values could be 0, 1, 32, or 33. So, in this case, the m value cannot be 32 or 33 (otherwise, random characters will be printed).

    The table includes the numeric values 32 and 33; they both occur if the Number of bits for vertical data is set to 24, i.e. it has a High Vertical Density. In the case of configuring the Epson TM-U220, the Low Vertical Density will need to be forced, as this printer model does not support High Vertical Density for this command ESC *.

    Para agregar una Baja densidad vertical, agregue el parámetro LDV a la nomenclatura del nombre.

    Agregue una *Baja densidad vertical*  (el parámetro `LDV`) a la nomenclatura del nombre.
  4. Click Continue to proceed. Next, set the Make value to Raw and the Model value to Raw Queue (en).

    Especificaciones para Epson TM-U220 en el sitio web de los fabricantes.

    However, when trying to print with the naming convention EpsonTMU220B__IMC_LDV__, the receipt is printed, but it is too large and outside the margin. To resolve this, add a new printer (and naming convention) with the SCALE<X> parameter to adapt to the receipt’s size.

    Estos son algunos de los ejemplos:

    Convención sobre el nombre de impresoras

    EpsonTMU220B__IMC_LDV__

    EpsonTMU220B__IMC_LDV_SCALE75__

    EpsonTMU220B__IMC_LDV_LDH__

    EpsonTMU220B__IMC_LDV_LDH_SCALE35__

    Formato de un recibo de ejemplo. Formato del recibo usando la convención: EpsonTMU220B__IMC_LDV__. Formato de un recibo usando la convención de nombre: EpsonTMU220B__IMC_LDV_SCALE75__. Formato del recibo usando la convención de nombre: EpsonTMU220B__IMC_LDV_LDH__. Formato del recibo usando la convención de nombre: EpsonTMU220B__IMC_LDV_LDH_SCALE35__.

Problemas con la impresora DYMO LabelWriter

The DYMO LabelWriter has a known issue in printing with IoT systems. The OpenPrinting CUPS server installs the printer using Local RAW Printer drivers. In order to print anything, the correct Make and Model needs to be set to reference the correct driver when using the device.

Additionally, a new printer needs to be added to reduce the print delay that occurs after updating the driver.

Importante

The DYMO LabelWriter 450 DUO printer is the recommended DYMO printer for use with Odoo and IoT systems. This device combines two printers: a label printer and a tape printer. When configuring the following processes, it is essential to select the correct model (either DYMO LabelWriter 450 DUO Label (en) or DYMO LabelWriter 450 DUO Tape (en)). For consistency, the following processes outline configuration steps for the DYMO LabelWriter 450 DUO Label (en) model. Adjust the model selections as needed.

DYMO LabelWriter no está imprimiendo

If the DYMO LabelWriter fails to print, install a new driver:

  1. Access the IoT system’s homepage and click Printer server to open the OpenPrinting CUPS console.

  2. Click Printers in the top menu, then click the printer in the list.

  3. Select Maintenance in the first dropdown menu.

  4. Select Modify Printer in the second dropdown menu.

    Modify the make and model of the DYMO LabelWriter. Maintenance and Modify dropdown menus highlighted.
  5. Select the specific network connection/printer on which the modification should be made and click Continue.

  6. On the next page, click Continue, then select DYMO from the Make dropdown list.

  7. Click on Continue and set the Model to DYMO LabelWriter 450 DUO Label (en) (or whichever DYMO printer model is being used).

  8. Click Modify Printer to set the new driver; a confirmation page appears.

  9. Click Printers in the top menu; all printers installed on the OpenPrinting CUPS server appear, including the newly updated DYMO LabelWriter 450 DUO Label (or whichever DYMO printer model is being used).

  10. Click the newly updated printer, then click the Maintenance dropdown menu and select Print Test Page to print a test label. The test label is printed after a few seconds if the driver update was successful.

To reduce this delay, add a new printer using the steps below.

Retraso de impresión en DYMO LabelWriter

Truco

If the DYMO LabelWriter 450 DUO printer is not printing at all, or is not recognized (i.e., it has a RAW driver type), then update the drivers on the device.

To resolve the delay issue after modifying the driver, reinstall the printer:

  1. Access the IoT system’s homepage and click Printer server to open the OpenPrinting CUPS console.

  2. Click Administration in the top menu, then click Add a Printer.

  3. On the next page, in the Local Printers section, select DYMO LabelWriter 450 DUO Label (DYMO LabelWriter 450 DUO Label) (or whichever DYMO printer model is being used) pre-installed printer. Click Continue.

    Add a printer screen on OpenPrinting CUPS with DYMO LabelWriter 450 DUO Label highlighted.
  4. On the following screen, update the Name to something easily identifiable, as the original printer will remain in the list. Then, click Continue.

    Página donde se cambia el nombre de la impresora en el flujo 'Agregar una impresora', se resalta el campo del nombre.
  5. Set the Model field to DYMO LabelWriter 450 DUO Label (en) (or whichever DYMO printer model is being used), then click Add Printer to complete the installation.

    Pantalla donde se selecciona un modelo en la consola OpenPrinting CUPS con el modelo y la impresora resaltados.
  6. Click Printers in the top menu and click the newly installed printer DYMO LabelWriter 450 DUO Label (or whichever DYMO printer model is being used) from in the list.

    Página de la impresora con la impresora que se acaba de instalar resaltada.
  7. Click the Maintenance dropdown list and select Print Test Page to print a test label. The test label should print out immediately, or after one or two seconds.

La impresora Zebra no imprime nada

Zebra printers are quite sensitive to the format of the printed Zebra Programming Language (ZPL) code. If nothing comes out of the printer or blank labels are printed, try changing the format of the report sent to the printer. To do so, activate the developer mode, go to Settings ‣ Technical ‣ User Interface ‣ Views, and search for the corresponding template.

Barcode scanner issues

El lector de códigos de barras lee caracteres que no coinciden con el código de barras

By default, most barcode scanners are configured in the US QWERTY format. If the barcode scanner uses a different layout, go to IoT ‣ Devices and click the barcode device’s card. Then, select the correct language in the Keyboard Layout field.

Nota

The Keyboard Layout is language-specific, with available options varying based on the device and the language of the database (e.g., English (UK), English (US), etc.).

No ocurre nada al escanear un código de barras

Make sure the correct device is selected in the Point of Sale settings (when applicable) and the barcode is configured to send an ENTER character (keycode 28) at the end of every barcode.

El lector de códigos de barras se detecta como un teclado

Importante

Some barcode scanners are identified as USB keyboards rather than barcode scanners and are not recognized by IoT systems.

To change the device type manually, go to IoT ‣ Devices and click the barcode device’s card. Then, enable Is scanner.

The barcode scanner processes barcode characters individually

When accessing the mobile version of Odoo from a mobile device or tablet paired with a barcode scanner via the IoT system, the scanner might interpret each character in a barcode as a separate scan. To resolve this, go to IoT ‣ Devices and click the barcode device’s card. Then, select the correct language in the Keyboard Layout field.

Nota

The Keyboard Layout is language-specific, with available options varying based on the device and the language of the database (e.g., English (UK), English (US), etc.).