summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/point_of_sale/static/src/js/Misc/NumberBuffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/Misc/NumberBuffer.js b/addons/point_of_sale/static/src/js/Misc/NumberBuffer.js
index f5f38d9cb00..8e25f601432 100644
--- a/addons/point_of_sale/static/src/js/Misc/NumberBuffer.js
+++ b/addons/point_of_sale/static/src/js/Misc/NumberBuffer.js
@@ -226,7 +226,7 @@ odoo.define('point_of_sale.NumberBuffer', function(require) {
};
if (input === undefined || input === null) return;
let isFirstInput = isEmpty(this.state.buffer);
- if (input === this.decimalPoint) {
+ if (input === ',' || input === '.') {
if (isFirstInput) {
this.state.buffer = '0' + this.decimalPoint;
} else if (!this.state.buffer.length || this.state.buffer === '-') {