How it works
- The Compago POS app answers on the terminal at
127.0.0.1:8008as an Epson printer would (ePOS-Print). It only listens on the terminal itself: nothing else on your network can print on it. - Odoo, open on the same terminal, sends each receipt there. The terminal fits it to its paper (58 mm) and prints it.
- With Card voucher under the Odoo receipt on in the Compago payment method, the terminal prints the card voucher right under Odoo’s receipt. If Odoo prints no receipt within 60 seconds of the approval, the terminal prints the voucher on its own.
Regulation requires a card voucher on every card-present sale, printed with the template certified with the acquirer. The Compago terminal always prints it in that template, so Odoo’s receipt and the voucher come out together, and the voucher itself is never changed or left to Odoo.
Set up
On the terminal
- Open the Compago POS app, go to Configuración › Integraciones
- Turn on Impresora para Odoo. The screen shows the address to use in Odoo (
127.0.0.1:8008) and the version of Chrome and of the Android System WebView on the terminal
In Odoo
- Go to Point of Sale › Configuration › Settings, in the point of sale that runs on the terminal
- Under Connected devices, turn on ePos Printer (or add a printer of type Use an Epson printer, depending on your Odoo version) and enter
127.0.0.1:8008as its IP address - To print the card voucher under Odoo’s receipt, open the Compago payment method (Point of Sale › Configuration › Payment Methods) and turn on Card voucher under the Odoo receipt. Also turn on Automatic Receipt Printing in the point of sale settings, so the receipt comes out as soon as the order is validated
- Open a new session so the point of sale loads its printer
Secure connection (HTTPS)
Your Odoo is served overhttps://, and the terminal’s printer answers on plain http://127.0.0.1. Two ways make them work together:
- Local Network Access (recommended): in Odoo, turn on developer mode, go to Settings › Technical › System Parameters and add
point_of_sale.use_lnawith valueTrue. Odoo then calls the printer overhttp://, and Chrome asks once whether the page may reach devices on the local network: answer Allow. It needs Chrome 142 or later on the terminal, which the Integraciones screen shows. - An older Chrome: without Local Network Access, Odoo calls the printer over
https://. Update Chrome or the Android System WebView from the terminal’s app store, then use Local Network Access.
Test it
- On the terminal, open your Odoo point of sale in Chrome
- Sell a product, pay with the Compago method and validate the order
- The terminal prints Odoo’s receipt. With Card voucher under the Odoo receipt on, the card voucher comes right under it, on the same paper
Troubleshooting
Odoo says the printer could not be reached
- Check that Impresora para Odoo is on in the Compago POS app and that the app is open or was opened since the terminal started
- Check the IP address in Odoo:
127.0.0.1:8008, with nohttp:// - On
https://, set up Local Network Access as above, and allow it when Chrome asks
The printer was reached but did not print
Odoo shows the error the terminal answered.EPTR_REC_EMPTY means the terminal is out of paper. Load paper and print the receipt again from Odoo.
The voucher comes out on its own paper
- Check that Card voucher under the Odoo receipt is on in the Compago payment method, and that the Compago module is updated
- Check that Impresora para Odoo is on in the terminal and that Odoo prints the receipt within 60 seconds of the approval (turn on Automatic Receipt Printing). After that, the terminal prints the voucher on its own