Files
odoo_source/addons/hr_expense
kdeb@odoo.com 6178be67c8 [FIX] hr_expense: apply old rates to total expenses
Issue:

- Expenses entered in currencies other than the company currency are
incorrectly calculated using today's exchange rate instead of the rate
applicable on the date the expense was made. This results in inaccurate
totals in the "totals to submit" section of the Expenses application.

Steps To Reproduce:

- Go to Expenses.
- See that the expenses to submit is $4,216.44.
- Create a new expense that is 999,999 EUR but $1.00 USD.
- See that the expenses to submit is $783395.96.

Solution:

- summing up total_amount_company directly instead of total_amount and
then converting to the company currency.

opw-3731445

closes odoo/odoo#156591

X-original-commit: 2c8b13e9270d2ccd6651e7618cbc363c1dd49f43
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Kawtar Drissi El Bouzaidi (kdeb) <kdeb@odoo.com>
2024-03-06 00:01:16 +00:00
..