summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-05-05 18:01:30 +0200
committerDenis Ledoux <dle@odoo.com>2015-05-06 18:29:47 +0200
commit4392289745ed4bbf667ed6ac3c0ed3c0a894abc7 (patch)
tree89670588d0d87d3835211d0471f37636a75f91b8 /addons/analytic_user_function/analytic_user_function_view.xml
parent2e3fdf3794f8a2185df1348ec6a3f7edb8e570cf (diff)
[FIX] account_invoice: residual of invoices in foreign currencies
If a line of the invoice move was in a foreign currency but its residual amount in this foreign currency was 0, the `amount_residual` (in company currency) was used, instead of the `amount_residual_currency`, which is the residual amount in this foreign currency. This was due to the fall back with the `and / or` statement. Using `if / else` instead solves the issue. This could lead to issues when the residual amount in the foreign currency was 0, but the residual amount in the company currency was 0.01, due to the exchange rate loss.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions