-
- Downloads
[FIX] web: numpad decimal with number type
Steps to reproduce: - in Barcode > Inventory Adjustment In the quantities add a decimal numpad Issue: Traceback Cause: The field is from type=number. This kind of field does not accept methods such `selectionStart()` or `selectionEnd` which causes an error: https://html.spec.whatwg.org/multipage/input.html#do-not-apply Solution: When of type=number, just return. On Chrome, numpad won't be possible for regions such as Portugese - BR. They would have to use the keyboard key `period`, code '.' in order to be able to put a decimal via the keyboard. In Firefox, HTML is parsing the input correctly if the browser settings are set to the right localization. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#localization opw-2956481 closes odoo/odoo#100948 X-original-commit: d95fbd80f63efbb47c9635e299f6ac417c5cb4c2 Signed-off-by:Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Yolann Sabaux (yosa) <yosa@odoo.com>
Loading
Please register or sign in to comment