summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-05-16 15:42:21 +0200
committerGoffin Simon <sig@odoo.com>2015-05-19 09:41:51 +0200
commitc5a613840f6f40f8c446d8b35e19f3c340cc056d (patch)
treefe231b4dc9f7ff30317d3f960d1d5324f7c6e1f6 /addons/analytic_user_function/analytic_user_function.py
parent6d25a1a18a1b45c4faed0f4ba644259ec4f11893 (diff)
[FIX] point of sale: function is_paid:
When rounding globally, the function compute_all in charge to compute the taxes for each line uses a very high currency rounding to avoid rounding per line. The round must be done on the sum of each total amount line with taxes. To validate a payment with the pos, the function is_paid verified that this sum is the same that the amount just paid. Inspired from "sale.order.line", the precision of 'price_unit' and 'price_subtotal' in "pos.order.line" must be taken from 'Product Price' to avoid rounding per line. ps: we could not use the function get_all_prices to round globally because it used on every line. Fixes #6681 Closes #6682 opw:639686
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions