Files
odoo_source/addons
nda-odoo 3246fe4d38 [FIX] purchase: remove unnecessary JOIN in purchase.report
This join is a leftover from https://github.com/odoo/odoo/pull/28248
and is not needed anymore since currency_rate is now stored on purchase.order.
Removing it allows to greatly speedup purchase.report queries.

On a database with 7000 purchase order and 1100 res_currency_rate:

From:
Planning Time: 4.411 ms
Execution Time: 19815.754 ms

To:
Planning Time: 16.914 ms
Execution Time: 77.433 ms

opw-2973044

closes odoo/odoo#104301

X-original-commit: 4ffa967eecfd930da7a0051122ed746af38ce709
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-10-27 15:41:18 +02:00
..
2022-10-11 13:15:12 +02:00
2022-10-06 14:56:52 +02:00
2022-10-19 16:09:55 +02:00
2022-10-11 13:15:53 +02:00
2022-09-24 15:00:56 +02:00
2022-10-11 13:15:54 +02:00
2022-09-24 15:00:56 +02:00
2022-10-06 14:56:52 +02:00