Closed sebalix closed 10 years ago
Sebastien, Do you still need a server log? I can post it if you need it.
No it's fine, thank you. The fix is ready, just some tests remaining and I will push it (maybe tonight). Thanks!
Thank you Sebastien, Maybe it is too late since the fix is ready but I realized that the issue was with OerpLib connecting again to OpenERP server to download the report, while OpenERP server used a new worker process to do that.
Yes, this is exactly that.
In fact, with OpenERP 5.0 and 6.0, the server was providing two methods to download reports: report
and report_get
. The first orders to the server to build a report, and the second must be called regularly to check if the report is ready to be downloaded.
Multiprocess/workers appeared in OpenERP 6.1, and since the memory is not shared between two processes/requests... report_get
has no clue about the report ordered by report
I think. For this purpose OpenERP added the render_report
RPC method, but OERPLib was not aware of it.
Yes, I stumbled onto render_report
method but I couldn't find any documentation about it.
You can pull the develop
branch if you want (it is stable enough). I will make a release later, there are some other stuff I need to check since the GitHub migration.
Original report : https://bugs.launchpad.net/oerplib/+bug/1371790
Oerplib fails to generate reports when OpenERP 7.0 is running in multi-process mode using 'workers=N'.
Steps to reproduce:
The following error is produced: