odoo/addons/account/report
Olivier Dony caf333eb59 [FIX] account.invoice.report: performance problem in currency rate computation
The SQL view implementing the "Invoice Analysis" report
JOINs the res.currency.rate table in order to obtain the
correct currency rate to convert each invoice line amount
in the same currency.

The matching of the rate needs to be done on the date
of that rate (`name` column) - the last rate preceding
the invoice date is presumed to be the right one.
However there is no simple way to make a direct JOIN between
account.invoice.line and res.currency.rate with a single
match, without using an ORDER BY clause and LIMIT 1.
This requires a costly SUBSELECT query for each invoice
line, quickly becoming prohibitive.

Through the use of PostgreSQL's Common Table Expressions
(CTE) it is possible to construct a temporary table
with the rates' start and end date of application.
This temporary table can then be used in a direct
JOIN with account.invoice.line, delivering much better
performance (no SUBSELECT needed for each invoice line)

On a database with 50k invoice lines this makes invoice
analysis return results in less than 800 ms instead of
10+ seconds.
2015-04-30 00:20:12 +02:00
..
__init__.py [IMP] account* reports: removed rml, added qweb template, changed the wizard to return qweb actions 2014-03-27 19:25:20 +01:00
account_aged_partner_balance.py [MERGE] forward port of branch saas-3 up to 36bf774 2014-12-17 14:08:23 +01:00
account_analytic_entries_report.py [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
account_analytic_entries_report_view.xml [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
account_balance.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_central_journal.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_entries_report.py [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
account_entries_report_view.xml [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
account_financial_report.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_general_journal.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_general_ledger.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_invoice_report.py [FIX] account.invoice.report: performance problem in currency rate computation 2015-04-30 00:20:12 +02:00
account_invoice_report_view.xml [FIX] account: open Monthly Turnover partner in graph mode 2014-12-12 12:16:56 +01:00
account_journal.py [FIX] account: missing context assignation in self 2014-09-15 12:26:07 +02:00
account_partner_balance.py [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
account_partner_ledger.py [MERGE] forward port of branch saas-3 up to 12f600c 2015-04-01 19:13:25 +02:00
account_print_overdue.py [IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports 2014-04-02 18:40:53 +02:00
account_report.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
account_report_view.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
account_treasury_report.py [REF] removed explicit model instanciations. 2013-04-15 12:23:49 +02:00
account_treasury_report_view.xml [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
common_report_header.py [REF] account: removed openerp.pooler imports. 2013-03-27 14:43:37 +01:00
report_vat.py [FIX] account: report_vat with several periods 2015-01-29 16:26:58 +01:00
transfer.xml merged with trunk 2010-12-30 15:28:09 +05:30
transfer.xsl merged with trunk 2010-12-30 15:28:09 +05:30