Error while calling new report

Asked by Deven Moga

Hello,

I have created brand new report for printing label in sale order. Now when i am calling that report i am getting strange error stated below :

Environment Information :
System : Linux-2.6.28-17-generic-i686-with-Ubuntu-9.04-jaunty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
Operating System Release : 2.6.28-17-generic
Operating System Version : #58-Ubuntu SMP Tue Dec 1 18:57:07 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.2
OpenERP-Client Version : 5.0.7
Last revision No. & ID :1031 <email address hidden>
Traceback (most recent call last):
  File "/home/deven/workspace/server/bin/service/web_services.py", line 687, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 363, in create
    raise Exception('Unknown Report Type')
Exception: Unknown Report Type

I am not understanding why this error is generating. I have attached my report with this post.
Please provide me the solution ASAP.
Waiting for the valuable reply.

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Deven Moga
Solved:
Last query:
Last reply:

This question was originally filed as bug #500978.

Revision history for this message
Deven Moga (erpsupport) said :
#1
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#2

Hello Deven,

I used the same report given by you and it gets printed normally.

Make sure you have specified proper xml record for report.

Can you debug and check what is the report type?

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#3

Bug reported on customized report.

Revision history for this message
Deven Moga (erpsupport) said :
#4

Hello,

Can you please tell me you are using which version of OpenERP because error is still generated at my side?
How can i check the report type?
Waiting for your reply.

Sincerely,
Deven

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#5

Hello Deven,

I am using latest version of OpenERP 5.0.7 up-to-datetime.

You may put some print statements and check the report type.(Debug ).

Go to /home/deven/workspace/server/bin/report/report_sxw.py and put print statement before the line of exception.

Thanks.

Revision history for this message
Deven Moga (erpsupport) said :
#6

Hi Jay,

Print statement display me openoffice-odt.
But i have saved the report in sxw and then convert it into RML. Then why the report format is openoffice-odt?

Can you please tell me how can i solve this ?
Waiting for your reply.

Sincerely,
Deven

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#7

hello,

Can you check the report type by going to open the report action by following menu :
 Administration/Low Level Objects/Actions/Report Xml
It should be pdf type only.

Thanks.

Revision history for this message
Deven Moga (erpsupport) said :
#8

Problem solved after re-creating the database.