Skip to Content
Menu
This question has been flagged
1 Reply
1069 Views

I followed the tutorial to create my first custom report.  The report pulls the appropriate data.  It is simple a table from the purchase order lines, I add in two related custom fields from the product module.  The report displays just fine on the studio screen but when I go to print the report it throws the following error.  Not sure what I did not set.  I have paper set to US Letter and PDF as the format.  Any help would be appreciated


Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 2150,\ in\ report_download
\ \ \ \ report_name\ =\ safe_eval\(report\.print_report_name,\ \{'object':\ obj,\ 'time':\ time\}\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/safe_eval\.py",\ line\ 328,\ in\ safe_eval
\ \ \ \ c\ =\ test_expr\(expr,\ _SAFE_OPCODES,\ mode=mode\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 184, in test_expr
code_obj = compile(expr, "", mode)
File "", line 1
Sample Report
^
SyntaxError: unexpected EOF while parsing

Avatar
Discard
Best Answer

Hello Mike Smith,

i understand that you have design your custom report with studio. as per my experience odoo studio drag and drop changes generate some time wrong xml which cause this kind of error. it is related to xml error.

i suggest you to find your report related studio changes and fix it.

activate debug or developer mode and go to Settings --> Technical --> view --> find your studio view and analyse xml to fix it or you can archive that view to make sure it is your changes.

Let us know if you still need any help on this, 

Thanks,


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 20
2680
1
Jun 16
2570
0
Mar 23
977
2
Jan 23
2750
2
Feb 24
361