Files
odoo_source/addons/spreadsheet_dashboard_sale/data
Abdelouahab (abla) bab80a4cae [FIX] spreadsheet_dashboard_sale : Revenue must be in company's currency
To Reproduce
============
- enable a currency and make it for example = 0.01$
- create pricelist for that currency
- make sale order with that pricelist (let's say 1000 = 10$)
- on dashboards the Revenue will be 1 000$

Problem
========
on spreadsheet we use the field `amount_untaxed` from `sale.order`, which
contains the amount in the currency of the sale order and not the company.

Solution
========
as `sale.oder` module doesn't have any field containing the converted amount,
we will use the field `price_subtotal` from `sale.report`

opw-3527802

closes odoo/odoo#142930

X-original-commit: 99a6389905785ab7cb3a1b2b0d546170caaa28c9
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Abdelouahab Laaroussi (abla) <abla@odoo.com>
2023-11-22 00:46:19 +00:00
..