← Back to team overview

openerp-india team mailing list archive

[Bug 932524] Re: account invoice report: massive performance problems

 

*** This bug is a duplicate of bug 1000195 ***
    https://bugs.launchpad.net/bugs/1000195

there are 2 new webkit invoice report
http://bazaar.launchpad.net/~c2c/c2c-financial-addons/6.1/files/head:/account_financial_report_webkit/
or one with more features 
http://bazaar.launchpad.net/~c2c/c2c-rd-addons/trunk/files/head:/account_invoice_webkit/

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/932524

Title:
  account invoice report: massive performance problems

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  IMHO produces a carthesian product

  account/report/ account_invoice_report.py
  row 166
                  res_currency_rate cr
                  where cr.id in (select id from res_currency_rate cr2  where (cr2.currency_id = ai.currency_id)
                  and ((ai.date_invoice is not null and cr.name <= ai.date_invoice) or (ai.date_invoice is null and cr.name <= NOW())) limit 1)

  there as some 4000 entries in res_currency_rate
  it never returns

  EXPLAIN sais it will return > 1mio records
  for 400 invoicese
  500 invoice lines

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/932524/+subscriptions


References