diff options
| author | Antoine Prieels <anp@odoo.com> | 2019-08-01 07:40:05 +0000 |
|---|---|---|
| committer | Antoine Prieels <anp@odoo.com> | 2019-08-01 07:58:24 +0000 |
| commit | b515d54232b9fc53c0bc14f6ddbe70e4f16d3208 (patch) | |
| tree | 894b6932858ed78cb2ef6b1a2f3108fe0a24fb02 /addons/mail/static/src/js/services/mail_document_thread_manager.js | |
| parent | 9a161988623b46d648e1e5ac5a48003cc5153fc1 (diff) | |
[FIX] hw_escpos: Cash drawer doesn't always open
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>
Diffstat (limited to 'addons/mail/static/src/js/services/mail_document_thread_manager.js')
0 files changed, 0 insertions, 0 deletions
