EDIT: Figured out the issue here was likely with Ubuntu 14 and wkhtmltopdf, creating a new VM with Ubuntu 12 instead solved the problem.
I recently installed a new instance of OpenERP v7.0, and am getting an error when trying to install a custom report module: SyntaxError: JSON Parse error: Unexpected EOF:
Traceback (most recent call last):
File "/opt/openerp/odoo/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/odoo/openerp/service/web_services.py", line 654, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/odoo/openerp/service/web_services.py", line 760, in exp_report_get
File "/opt/openerp/odoo/openerp/service/web_services.py", line 738, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/opt/openerp/odoo/openerp/netsvc.py", line 71, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u"list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()", (<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()",), <traceback object at 0x7fd88ef03290>))
Any idea why this might be? It worked perfectly in my other instance. One thing that might have caused it is that I had a v7 saas-5 instance on the same server, but I removed the git repo and reinstalled. Should I nuke/pave the VM and try again? The other thing I noticed is that my old version (installed by someone else) is at Version 7.0-20131113-002526, where my new one says just Version 7.0 - not sure if that could be causing it too. Any insight would be greatly appriciated!
I am facing the same issue. I am using Odoo7 on Ubuntu 14. It worked well when I am running the application on Ubuntu 12. Onc I shifted my application to Ubuntu 14, the sale order report is not loading and the email template in which sale order is attached, is showing the following error.
list index out of rangeparagraph text u'<para></font></para>' caused exception
When I am trying to download the sale order, it is showing the following error.
Uncaught SyntaxError: Unexpected end of JSON input
Can anybody help me with a solution.
I also faced this error. Please help.
When i try to print invoice that has some special character(crotian language) in customer name. It gives me this.
"SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
This is my log :
return self.app(environ, start_response)
File "/opt/odoo/openerp/http.py", line 1441, in dispatch
return response(environ, start_response)
File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 1200, in __call__
app_iter, status, headers = self.get_wsgi_response(environ)
File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 1190, in get_wsgi_response
return app_iter, self.status, headers.to_wsgi_list()
File "/usr/lib/python2.7/dist-packages/werkzeug/datastructures.py", line 1185, in to_wsgi_list
return [(k, v.encode('latin1')) for k, v in self]
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-38: ordinal not in range(256)
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
|Asked: 9/12/14, 4:46 PM|
|Seen: 6394 times|
|Last updated: 6/28/16, 7:28 AM|