summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorThibault Francois <tfr@openerp.com>2020-03-06 14:27:48 +0000
committerLaurent Smet <las@odoo.com>2020-03-20 07:59:25 +0000
commitbc6dc53b6da17b22f66e744924cabb976e3f37e6 (patch)
tree5627c99a5b352fd7ab18949c0ec8c1ad968495f6 /addons/web/static/src
parent215b2fffa23409ab91729bf926d6a8ed9a2e6f35 (diff)
[FIX] account: issue with not rounding price_subtotal
Write on business field on account.move.line may lead to an unbalanced move due to currency conversion from the price_subtotal to debit or credit How to reproduce: You need to create an invoice in a different currency than the company currency The rate form currency to company currency should be much bigger then 1 for example 8 or 10 Create a line the will have a pricesubtotal with 3 decimal For example: price unit : 28.8 qty: 4 discount: 22% the price_subtotal will be 89.856 rounded in the form to 89.86 Based on that with a rate of 7.79356837023608 You end up with a credit of 700.33 then write on the line, for example the analytic account It will trigger the computation of the price subtotal and directly with that value the credit and you endup with a credit 700.30 which is not balanced with the 700.33 of the other line Solution: Always round the pricesubtotal computed with the currency before using it in any further computation closes odoo/odoo#47305 X-original-commit: a60017df0e947e32f0606ee1487224d2c00470a4 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions