Error printing some reports

Bug #312741 reported by Jordi Esteve (www.zikzakmedia.com)
2
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Clean installation of openerp 5.0 of the last trunk (server and gtk client), only base addon is installed.

Error on printing reports that the service has not defined with a call to report_sxw.report_sxw('report...', ...)

For example, when the partner labels are printed:

[Wed Dec 31 2008 16:43:32] ERROR:module:This service does not exists: u'report.res.partner.address'
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[01]: Exception: u'report.res.partner.address'
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[02]: Traceback (most recent call last):
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[03]: File "/home/zikzak/tinyerp/openerp-server/branches/common/bin/service/web_services.py", line 467, in go
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[04]: obj = netsvc.LocalService('report.'+object)
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[05]: File "/home/zikzak/tinyerp/openerp-server/branches/common/bin/netsvc.py", line 131, in __init__
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[06]: s = _service[name]
[Wed Dec 31 2008 16:43:32] ERROR:web-services:[07]: KeyError: u'report.res.partner.address'

The other reports with a call to report_sxw.report_sxw('report...', ...), like the technical guide in modules, are printed successfully.

Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

I have noticed that the problem appears in the first execution/installation of the server. If the server is restarted, the second time all the reports are accessible.

Changed in openobject-server:
status: New → Fix Released
Revision history for this message
www.mgazelle.com (mgazelle) wrote :

I am facing the same issue with a self created report

Environment Information :
System : Linux-2.6.31-16-generic-x86_64-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-16-generic
Operating System Version : #52-Ubuntu SMP Thu Dec 3 22:07:16 UTC 2009
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 682, in go
    obj = netsvc.LocalService('report.'+object)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 66, in __init__
    self._service = SERVICES[name]
KeyError: u'report.x_letter'

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.