With some printers (ex: Epson TM-m30), the cash drawer only opens 50% of the time if you just send the kick command. A fix has already been made (odoo/odoo#33328). In the previous fix, we retried up to five times to send the pulse, checking the status of the drawer between each pulse. The problem was that, when we read the value of the status, the pulse was not yet done and the status was not yet updated. The pulse was then always sent five times, even if the first pulse worked, making a lot of noise. For some reason, if you read the status right after sending the pulse, the drawer always opens and the loop is not needed anymore. TaskID: 2045581 closes odoo/odoo#35368 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
The escpos directory contains the MIT licensed pyxmlescpos lib taken from