|
|
@ -92,14 +92,11 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
var type = this.pos.keypad.type; |
|
|
|
if (data.type === type.numchar){ |
|
|
|
this.state.appendNewChar(data.val); |
|
|
|
} |
|
|
|
else if (data.type === type.bmode) { |
|
|
|
} else if (data.type === type.bmode) { |
|
|
|
this.state.changeMode(data.val); |
|
|
|
} |
|
|
|
else if (data.type === type.sign){ |
|
|
|
} else if (data.type === type.sign){ |
|
|
|
this.clickSwitchSign(); |
|
|
|
} |
|
|
|
else if (data.type === type.backspace){ |
|
|
|
} else if (data.type === type.backspace){ |
|
|
|
this.clickDeleteLastChar(); |
|
|
|
} |
|
|
|
} |
|
|
@ -259,7 +256,9 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
|
timeStamp = new Date().getTime(); |
|
|
|
|
|
|
|
setTimeout(function(){ |
|
|
|
if (ok) {self.action_callback(self.data);} |
|
|
|
if (ok) { |
|
|
|
self.action_callback(self.data); |
|
|
|
} |
|
|
|
}, 50); |
|
|
|
} |
|
|
|
}); |
|
|
|