summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/pyeval.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-02-23 13:52:50 +0100
committerNicolas Martinelli <nim@odoo.com>2016-02-23 14:38:09 +0100
commitee33593351a148d0f678b36fc01e8524fe1452b6 (patch)
tree6e18769b121de506611bc1d93edaed36cb0292ff /addons/web/static/src/js/framework/pyeval.js
parent2230bee0c524f14038c0ea8a95efe9fd7abacf90 (diff)
[FIX] point_of_sale: round price unit
The product price unit should be rounded before being used in any operation. The PoS calls the method `read` in order to get the necessary fields. However, the product price is a non-stored calculated float. In old API, such a field is not rounded by the `read` method. It means that a product price of 28.067 (for example thanks to the use of a pricelist) will be rounded to 28.07 at the server level but not rounded in the PoS JS layer. To lower the impact of the fix, the rounding is done at the JS level, and not in the `_product_price` method. opw-669024
Diffstat (limited to 'addons/web/static/src/js/framework/pyeval.js')
0 files changed, 0 insertions, 0 deletions