|
|
@ -104,7 +104,7 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
screens.PaymentScreenWidget.include({ |
|
|
|
show: function(){ |
|
|
|
this._super(); |
|
|
@ -115,8 +115,8 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
this.pos.keypad.connect(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// this module mimics a keypad-only cash register. Use connect() and
|
|
|
|
|
|
|
|
// this module mimics a keypad-only cash register. Use connect() and
|
|
|
|
// disconnect() to activate and deactivate it.
|
|
|
|
var Keypad = core.Class.extend({ |
|
|
|
init: function(attributes){ |
|
|
@ -248,7 +248,7 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
self.data.type = undefined; |
|
|
|
self.data.val = undefined; |
|
|
|
ok = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (is_number) { |
|
|
|
if (timeStamp + 50 > new Date().getTime()) { |
|
|
@ -266,13 +266,13 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
self.active = true; |
|
|
|
}, |
|
|
|
|
|
|
|
// stops catching keyboard events
|
|
|
|
// stops catching keyboard events
|
|
|
|
disconnect: function(){ |
|
|
|
$('body').off('keyup', ''); |
|
|
|
self.active = false; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
Keypad: Keypad |
|
|
|
}; |
|
|
|