Community mailing list archives

community@mail.odoo.com

Re: Are there offline reports to resolve performance issue of reporting.

by
Ecosoft Co. LTD, Kitti Upariphutthiphong
- 02/18/2016 09:01:41
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 <caudaleric@gmail.com> wrote:

This looks like a good idea.
It reminds me of the old time print queue in as400


On Wed, Feb 17, 2016, 16:23 Kitti U. <kittiu@ecosoft.co.th> wrote:
Thank 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 Balance
2) User can check new "Run by job?" checkbox
3) 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?
Kitti
On Sun, Feb 14, 2016 at 11:21 AM, Caudal Eric <caudaleric@gmail.com> wrote:
Check financial reports in the OCA repo. some of the known performance issues have been addressed

On Sun, Feb 14, 2016 at 11:07 AM Kitti U. <kittiu@ecosoft.co.th> wrote:
Hi 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
--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

--

Eric  Caudal (from my mobile)

_______________________________________________




--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

--

Eric  Caudal (from my mobile)

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th