[FIX] point_of_sale: dot input should be recognized even at different lang
Language such as FR recognizes `,` as the decimal separator. However, it is possible that the keyboard setting is American so the decimal point in the numpad will send `.` when pressing it. POS should be able to recognize both. This fix allows `.` sent from keyboard to be interpreted as decimal separator even at language where the decimal separator is `,`. This is okay because number inputs in POS doesn't take into account the thousand separator. X-original-commit: 444fc5621b1157fe3c442f6a1aecfd00d5f8e5d7
This commit is contained in:
@@ -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 (this.state.toStartOver) {
|
||||
this.state.buffer = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user