diff --git a/pos_keyboard/__manifest__.py b/pos_keyboard/__manifest__.py index 4641e58..a997354 100644 --- a/pos_keyboard/__manifest__.py +++ b/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", diff --git a/pos_keyboard/doc/changelog.rst b/pos_keyboard/doc/changelog.rst index ac8ea31..d4dcfe4 100644 --- a/pos_keyboard/doc/changelog.rst +++ b/pos_keyboard/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.1.3` +------- + +**Fix:** Enter did not work for some pop-ups + `1.1.2` ------- diff --git a/pos_keyboard/static/src/js/pos.js b/pos_keyboard/static/src/js/pos.js index fdcc836..7d4f958 100644 --- a/pos_keyboard/static/src/js/pos.js +++ b/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){