-
- Downloads
[FIX] base, sale_project, project_purchase: convert currencies in profitability
Steps to reproduce:
- create a project with an analytic account;
- create sale orders/invoices and purchase order/bills for a project;
- use other currencies;
- go to the "Project Updates".
Issue:
The amounts are used without being converted
into the currency of the analytic account.
Solution:
Convert amounts used in the currency of the analytic account.
Note:
For performance reasons, it is acceptable to fetch all currency
on the same date to get the conversion rate.
In this case, today's date is the most appropriate
(as the project is in progress).
opw-3193676
closes odoo/odoo#113146
Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
Showing
- addons/project_purchase/models/project.py 21 additions, 7 deletionsaddons/project_purchase/models/project.py
- addons/project_purchase/tests/test_project_profitability.py 5 additions, 0 deletionsaddons/project_purchase/tests/test_project_profitability.py
- addons/sale_project/models/project.py 13 additions, 5 deletionsaddons/sale_project/models/project.py
Loading