Browse Source

🚑 Function 'disconnect' not working in expected way

pull/155/head
Raul Ovalle 5 years ago
committed by Vincent Van Rossem
parent
commit
555b565825
  1. 4
      pos_keyboard/__manifest__.py
  2. 6
      pos_keyboard/doc/changelog.rst
  3. 3
      pos_keyboard/static/src/js/pos.js

4
pos_keyboard/__manifest__.py

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2015 igallyamov <https://github.com/igallyamov>
# Copyright 2016 ufaks <https://github.com/ufaks>
# Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
@ -10,14 +11,13 @@
"category": "Point Of Sale",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}",
"images": ['images/keyboard.png'],
"version": "11.0.1.1.3",
"version": "10.0.1.1.4",
"application": False,
"author": "IT-Projects LLC, Ivan Yelizariev",
"support": "apps@it-projects.info",
"website": "https://it-projects.info/team/yelizariev",
"license": "LGPL-3",
"price": 15.00,
"currency": "EUR",

6
pos_keyboard/doc/changelog.rst

@ -1,3 +1,9 @@
`1.1.5`
-------
**Fix:** Function 'disconnect' not working in expected way
`1.1.4`
-------

3
pos_keyboard/static/src/js/pos.js

@ -3,6 +3,7 @@
Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr>
Copyright 2019 ssaid <https://github.com/ssaid>
Copyright 2019 raulovallet <https://github.com/raulovallet>
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). */
odoo.define('pos_keyboard.pos', function (require) {
"use strict";
@ -269,7 +270,7 @@ odoo.define('pos_keyboard.pos', function (require) {
// stops catching keyboard events
disconnect: function(){
$('body').off('keyup', '');
self.active = false;
this.active = false;
}
});

Loading…
Cancel
Save