summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2019-09-03 12:33:11 +0000
committerGoffin Simon <sig@odoo.com>2019-09-04 07:34:08 +0000
commit450269b26805b21428b16bd6deab30d4a8d9dd16 (patch)
treeeae426a3059c46e5f9508c7c93512322067e5dd4 /addons/web/static/tests/fields/basic_fields_tests.js
parent0b146aa253bdd8f5f420511253c644e64e850543 (diff)
[FIX] account: Wrong amount due when reconciling with refund
Steps to reproduce the bug: - Let's consider the following currency rates: 1.00 for USD and 0.50 for EUR - Create invoice I with the same currency of your company (USD) and amount due = 100$ - Validate I - Create refund R with a diffenrent currency of your company (EUR) and amount due = 1€ - Validate R - Reconcile R with I Bug: The amount due of I was 196$ instead of 98$ PS: The root of this issue was coming from function assign_outstanding_credit that was called when reconciling R with I. This function changes the currency_id and the amount_currency of the account move line. So the function _amount_residual defined on model account.move.line was triggered as the currency_id was changed. In _amount_residual, the residual_amount_currency was computed. opw:2062103 closes odoo/odoo#36379 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions