summaryrefslogtreecommitdiff
path: root/odoo/sql_db.py
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2020-10-19 14:37:46 +0000
committerAnh Thao Pham (pta) <pta@odoo.com>2020-10-19 14:37:46 +0000
commit7687732a8a2e1afe87272fc31ccd4437ed9a8db1 (patch)
treeb5018ff3a7faf55e5eb72f4fda14ca1f0fd35142 /odoo/sql_db.py
parent1c0db7b2f4e5bdfba921e82e6872ac13d44f9d7a (diff)
[FIX] point_of_sale: fix decimals converted into units after parse
In a POS session, in a language that does not use dot (.) as decimal separator (i.e. French), when adding a Product, it can happen that the decimal part of the price is not converted correctly after applying "field_utils.parse.float". (i.e. 2.69 becomes 269) The issue happens in "set_unit_price" function. To prevent this to happen, "field_utils.parse.float" will only be applied if the price given as parameter is not a number. opw-2357848 closes odoo/odoo#60294 Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
Diffstat (limited to 'odoo/sql_db.py')
0 files changed, 0 insertions, 0 deletions