Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2062 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
říj 20
3735
1
čvn 16
3404
0
bře 23
2075
2
led 23
4159
1
čvc 25
283