summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2018-09-29 00:20:43 +0000
committerJoren Van Onder <jov@odoo.com>2018-10-15 21:05:17 +0000
commit6c42ca8a7be54a7a6a68461584017fbe4f66cf58 (patch)
treeab1bc65aa11dd945ee5900c550176ad86b92245d /addons/web/static/src/js/views/basic/basic_model.js
parent939b022ebf222dac8a921b43a1f5fbb1293052d2 (diff)
[FIX] point_of_sale: make card readers work again on payment screen
Swiping a credit card through pos_mercury no longer worked on the payment screen. 3a74afd21eb12ca79a2f609b58f271278cae57cf introduced some special code in BarcodeEvents for mobile Chrome. This code relies on an invisible input being filled in by barcode device. On the payment screen the POS uses a keypress event handler on body to manage input. This handler preventsDefault which stops the input from being filled in. It's worth noting that this new approach in 3a74afd21eb12ca79a2f609b58f271278cae57cf is not fully equivalent to the original barcode events handler. Events are not redispatched, so this effectively disables keyboard input on the payment screen (or anywhere where it is used). opw-1888466 closes odoo/odoo#27820
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions