Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


RML report error : "Style '0' not found in stylesheet"

Abhishek H Menon
on 10/18/13, 2:40 AM 735 views

When I try to run an rml report in my system, the following error shows Style '0' not found in stylesheet

(<type 'exceptions.keyerror'="">, KeyError("Style '0' not found in stylesheet",), <traceback object="" at="" 0xb5b8aa4="">)

But when we run in another system, there is no error. And we get the output successfully. Can you please suggest a solution to tackle this problem.

What report are you trying to run? Have you edited it in any way? If not, you may want to just grab the latest source code revision for whatever version you're using.

Brett Lehrer
on 10/21/13, 4:12 PM

No. It is an rml report while trying to print it it shows the above error. I don't know what to do as I am not familiar with rml reports in openerp.

Abhishek H Menon
on 10/23/13, 3:49 AM

You'll have to dig in and find exactly where the source file is that is responsible for the report. You never mentioned what report it is so I can't help there. My guess is that if you got the RML file on the working system and did a diff against the same file on the bad system, you'd see a difference. If not, there's a custom report in the database which supercedes the RML file completely. You could probably just look at the bad RML file for a <para style="0"> tag, too.

Brett Lehrer
on 10/23/13, 12:37 PM

I have verified the rml file there is not any statement like para style ="0" but we run the same codes and all in another pc it executes successfully. I think the generated error is System dependent.

Abhishek H Menon
on 10/24/13, 2:43 AM

Check the database record in ir_act_report_xml for that report. Are report_rml_content_data and report_sxw_content_data fields empty? Just a shot in the dark.

Brett Lehrer
on 10/24/13, 3:03 AM

yes all the fields are occupied with "<binary data>"

Abhishek H Menon
on 10/24/13, 3:08 AM

I'm assuming you're in pgAdmin? <binary data> may still mean it's empty, but try just deleting the content of those two cells and saving the record.

Brett Lehrer
on 10/24/13, 3:10 AM

via pgAdmin itself ?

Abhishek H Menon
on 10/24/13, 8:47 AM

Yeah, right in pgAdmin as you're viewing rows. You can make edits to the data that way.

Brett Lehrer
on 10/24/13, 10:34 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 10/18/13, 2:40 AM
Seen: 735 times
Last updated: 3/16/15, 8:10 AM