Browse Source

🚑 enter did not work for some popups

pull/155/head
KolushovAlexandr 6 years ago
committed by Vincent Van Rossem
parent
commit
33376310de
  1. 2
      pos_keyboard/__manifest__.py
  2. 5
      pos_keyboard/doc/changelog.rst
  3. 5
      pos_keyboard/static/src/js/pos.js

2
pos_keyboard/__manifest__.py

@ -11,7 +11,7 @@
"category": "Point Of Sale",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}",
"images": ['images/keyboard.png'],
"version": "10.0.1.1.1",
"version": "10.0.1.1.3",
"application": False,
"author": "IT-Projects LLC, Ivan Yelizariev",

5
pos_keyboard/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.3`
-------
**Fix:** Enter did not work for some pop-ups
`1.1.2`
-------

5
pos_keyboard/static/src/js/pos.js

@ -50,8 +50,11 @@ odoo.define('pos_keyboard.pos', function (require) {
} else if (data.type === type.backspace){
this.click_keyboard('BACKSPACE');
} else if (data.type === type.enter){
if (this.click_confirm.length) {
// some pop-ups might throw an error due to lack of some income data
try {
return this.click_confirm();
} catch (error){
return;
}
return;
} else if (data.type === type.escape){

Loading…
Cancel
Save