diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-01-25 12:16:01 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-01-28 12:51:50 +0000 |
| commit | c8ac1b40f258a2de72437ada292ec7256db36c3f (patch) | |
| tree | 89176898bb6f0b253faa503987d168c580282ff5 /addons/mail/static/src/js/thread_windows | |
| parent | e7bbdf884fa113bda1c7dd9d16ac17ac6429a013 (diff) | |
[FIX] account: dashboard performance
When thousands of invoices are in a different currency than their
corresponding journals, a large number of calls are performed to
`_get_conversion_rate`, and therefore `_select_companies_rates`.
Despite the fact that the query itself is optimized, the impact of
performances on the dashboard loading time is not negligible.
In order to avoid unnecessary queries, we create a cache dictionary to
store the rate values. This way, we avoid any unnecessary query.
opw-1920188
closes odoo/odoo#30552
Diffstat (limited to 'addons/mail/static/src/js/thread_windows')
0 files changed, 0 insertions, 0 deletions
