跳至内容
菜单
此问题已终结
1 回复
2066 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
10月 20
3736
1
6月 16
3410
0
3月 23
2082
2
1月 23
4161
1
7月 25
295