summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorGert Pellin <gpe@odoo.com>2018-11-30 12:07:07 +0000
committerGert Pellin <gpe@odoo.com>2018-12-05 12:25:35 +0000
commit09f24de5d3340ac32312ac654bc4803ce4042817 (patch)
treed362a24466d1d2dc7399839b7c144dbebf7a8224 /addons/web/static/src/js/fields/relational_fields.js
parentda18c1a115b307c28932ec0c7d566461227d1f3e (diff)
[FIX] point_of_sale: group products with pricelist
Before this fix products in a pricelist would not be grouped when there is a decimal value in the price. This problem was caused by a trailing rounding error, for instance a price of 29.90 could give a pricelist price of 29.900000000002. To solve this we check if Math.round((price - pricelist-price)/currency-rounding) gives 0 as a result, if so, the price is equal to the pricelist price and the product can be grouped. solves: https://github.com/odoo/odoo/issues/28521#issuecomment-443148920 closes odoo/odoo#29185
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions