diff options
| author | Adrien Widart <awt@odoo.com> | 2020-12-15 14:12:55 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2020-12-17 07:09:47 +0000 |
| commit | 6abd50ae8e1b19339163c717705826544e222e13 (patch) | |
| tree | 84eecd19336b610d8e493cfde771a1c43dcf5130 /doc/reference/javascript_reference.rst | |
| parent | 06f15401a6f30648cddffdd07b765c6cb96fcf99 (diff) | |
[FIX] point_of_sale: barcode and decimal notation
In some languages, if the thousands/decimals separators are different
from ','/'.' , when scanning a barcode that contains a decimal quantity,
the conversion won't be correct.
To reproduce the error:
1. Go to Settings > Inventory
2. Enable "Units of Measure"
3. Go to Point of Sale > Products > Products
4. Create a Product P
- Set a barcode, e.g. 2112345000008
- Set UoM to 'kg'
5. Go to Settings > Translations > Languages
6. Add and switch to French (BE)
7. Run one POS
8. Use the debugging window to simulate a scan
- Enter the code, e.g. 2112345087550
(It means 8.755kg of product P)
- Click on "Scan EAN-13"
=> Here is the error: it actually adds 8755kg of P-product. This comes
from the quantity conversion. The barcode provides the qty as a number with
basic decimal notation (.) but later, it is converted using the user's
language configuration.
OPW-2412561
closes odoo/odoo#63406
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
