summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2020-10-09 14:16:07 +0000
committerAnh Thao Pham (pta) <pta@odoo.com>2020-10-12 09:26:31 +0000
commita1543d2a283000e2955df5f8131bae5e25e110c0 (patch)
tree399ce21ba68dc6993b9bff4752e1d4c08b760f7f /addons/website/static/src
parent7f7f9c6c9165fc6697e90ed6616466d9684e28f2 (diff)
[FIX] point_of_sale: fix decimal button in lang with not dot decimal
- Activate debug mode - Go to Settings > Translations > Languages - Activate and switch to a language that does not use dot (.) as decimal separator (i.e. French) - Go to a POS session - Select a Product, edit the price with a decimal via the Numpad widget The decimal is not taken into account. This is due to the fact that the entered input ('.') is not considered as the decimal point in this language (i.e. ',') and is skipped. The same issue happens for quantity and discount. The dot in the Numpad widget has been replaced by the decimal separator of the language. Also "field_utils.parse.float" has to be used instead of "parseFloat" because "parseFloat" only recognizes a dot as separator. (i.e. "parseFloat" returns 12.00 for "12,99") Howerver "parseFloat" is still useful for checking values as "field_utils.parse.float" returns an error if its parameter is not a string or if the parsed result is not a number. opw-2357848 closes odoo/odoo#59665 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/website/static/src')
0 files changed, 0 insertions, 0 deletions