Error while creating report on OpenERP 7.0 with multiple workers

Bug #1371790 reported by Egor Tsinko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OERPLib
Fix Released
Undecided
Unassigned

Bug Description

Oerplib fails to generate reports when OpenERP 7.0 is running in multi-process mode using 'workers=N'.

Steps to reproduce:

1. make sure that workers = N (where N > 0) is in openerp-server.conf

2. Create a new database with demo data enabled

3. install 'warehouse' and 'sale' modules. These modules will create demo sale order

4. Use the following snippet to see the error:

#========================================================================
import oerplib

oerp = oerplib.OERP(server='localhost', database='test', version='7.0')
oerp.login(user='admin', passwd='test')

print oerp.report('sale.order', 'sale.sale', [8])
#========================================================================

The following error is produced:

Traceback (most recent call last):
  File "/home/etsinko/work/PyqtTest/pyqt/widgets/test.py", line 7, in <module>
    print oerp.report('sale.order', 'sale.sale', [8])
  File "/usr/local/lib/python2.7/dist-packages/oerplib/oerp.py", line 317, in report
    report_type, context)
  File "/usr/local/lib/python2.7/dist-packages/oerplib/oerp.py", line 347, in _get_report_data
    raise error.RPCError("Unknown error occurred during the "
oerplib.error.RPCError: Unknown error occurred during the download of the report.

5. If you set workers = 0 in openerp-server.conf the snippet prints out the name of the temporary file in which report is contained

Egor Tsinko (etsinko)
description: updated
Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

Hi,

Have you access to the server log?
I will attempt to reproduce the bug anyway!

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

I reproduced the bug in OpenERP 7.0 and Odoo 8.0, and I found a fix for that.

Also, your bug report has been copied on GitHub (we are moving OERPLib there) : https://github.com/osiell/oerplib/issues/3

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :
Changed in oerplib:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.