Odoo Help


Error in .DOCX reports, but fine in PDF

Andrija Burlic
on 11/20/14, 10:27 AM 1,198 views


I achieve my goal in creating OpenERP's report via Jasper, but somehow it only works for PDF (and CSV or XSL) but NOT in DOCX (and XSLX) format.

Error I'm getting is following:

[4]L’erreur suivante s’est produite lors de l’exportation du rapport : null

(<class 'openerp.addons.jasper_server.jasperlib.ServerError'>, ServerError('[4]L\xe2\x80\x99erreur suivante s\xe2\x80\x99est produite lors de l\xe2\x80\x99exportation du rapport\xc2\xa0: null',), <traceback object at 0x00000000076E7248>) 

Here is picture:                        http://screencast.com/t/plNcvmYn2ocW

Since the same code works for .PDF, can someone gives me hit what's wrong with creating .DOCX files?

Thanks in advance!




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 11/20/14, 10:37 AM

my guess is it's unicode problem.. 

you are using special chars ( ČĆŽŠĐčćžšđ) in names (products or something)

as proof of concept, try the same report, but make sure there is no such chars, if it works then you know where to look ;)

hope it helps

Hi, thank you for your answer. i already did that check, since I was thinking that similar issues can be the reson for this issue. But, it won't open even blanko report, so I must exclude it from further investigation. Also, I noticed that in the code in jasper_reports method there is not explicit code for DOCX format, maybe there can be root of my problem?

Andrija Burlic
on 11/20/14, 11:00 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/20/14, 10:27 AM
Seen: 1198 times
Last updated: 3/16/15, 8:10 AM