Community mailing list archives
Re: Are there offline reports to resolve performance issue of reporting.by
Hi Kitti,Try to look at the print invoice report it quiet straight forward.
Most of the other report are run through wizard when they need input parameter.
https://github.com/odoo/odoo/blob/9.0/addons/account/wizard/account_report_general_ledger.py#L172016-02-18 15:09 GMT+01:00 Kitti U. <firstname.lastname@example.org>:Hello again,I was trying to develop this new "base_report_async" module. I was looking into OCA's connector-interface, "base_import_async" as the example. It is easy enough.I think if I can find the hook function which do generate the PDF, I could simulate the same. And that would be it.After digging a while, I think (not very sure) that the method is in /addons/report/models/report.get_pdf().Frankly, how Odoo generate report into PDF is the black box to me. From reading the code and try to imagine, is it like this?
- After user click, system will do http redirection to another QWeb html page, and try to render PDF from that.If that is the case, then can I conclude that we can't run the report in background by Odoo Connector?But I am willing to try, any expert advise?Thank you,On Wed, Feb 17, 2016 at 6:27 PM, Caudal Eric <email@example.com> wrote:
This looks like a good idea.
It reminds me of the old time print queue in as400Thank you Eric and everyone,I am thinking about making something related to connector. The flow may be,1) Call any report Wizard, i.e., Trial Balance2) User can check new "Run by job?" checkbox3) With this, report will not run immediately, but queue with job queue of connector.4) Lateron, user go to his/her "My Report Job" menu which list only his/her job and click download report from there.Anything like this would make sense as a good module?KittiOn Sun, Feb 14, 2016 at 11:21 AM, Caudal Eric <firstname.lastname@example.org> wrote:Check financial reports in the OCA repo. some of the known performance issues have been addressedHi community,When data and number of users are big, running accounting report seem to cause performance problem.Are there way to run them offline? Like spool report in SAP where people request the report first, and come back to view them later.Kitti----
Eric Caudal (from my mobile)
Ecosoft Co. LTD, Kitti Upariphutthiphong