Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When exporting PDF tree view with group_by #11

Open
andre-oa opened this issue Jun 22, 2015 · 0 comments
Open

[Bug] When exporting PDF tree view with group_by #11

andre-oa opened this issue Jun 22, 2015 · 0 comments

Comments

@andre-oa
Copy link

I get the following error when exporting a tree view where a group_by filter is enabled and one of the group_by's is expanded.

tree view

The error is:
Traceback (most recent call last):
File "werkzeug\serving.py", line 177, in run_wsgi

File "werkzeug\serving.py", line 165, in execute

File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\service\server.p
y", line 281, in app
return self.app(e, s)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\service\wsgi_ser
ver.py", line 216, in application
return application_unproxied(environ, start_response)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\service\wsgi_ser
ver.py", line 202, in application_unproxied
result = handler(environ, start_response)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 1
280, in call
return self.dispatch(environ, start_response)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 1
254, in call
return self.app(environ, start_wrapped)
File "werkzeug\wsgi.py", line 579, in call

File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 1
421, in dispatch
result = ir_http._dispatch()
File "C:\Program Files (x86)\Odoo 8.0\server\openerp\addons\base\ir\ir_http.py
", line 130, in _dispatch
return self._handle_exception(e)
File "C:\Program Files (x86)\Odoo 8.0\server\openerp\addons\base\ir\ir_http.py
", line 100, in _handle_exception
return request._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 6
59, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 8.0\server\openerp\addons\base\ir\ir_http.py
", line 126, in _dispatch
result = request.dispatch()
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 6
77, in dispatch
r = self._call_function(*_self.params)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 3
03, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\service\model.py
", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 3
00, in checked_call
return self.endpoint(_a, *_kw)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 7
96, in call
return self.method(_args, *_kw)
File "C:\Program Files (x86)\Odoo 8.0-20150417\server\openerp\http.py", line 3
96, in response_wrap
response = f(_args, *_kw)
File "C:\addons\web_printscreen_zb\controllers.py", line 155, in
index
data.get('company_name','')),
File "C:\addons\web_printscreen_zb\controllers.py", line 144, in
from_data
self.obj = trml2pdf.parseNode(rml, title='Printscreen')
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 982, in pa
rseNode
r.render(fp)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 295, in re
nder
pt_obj.render(el)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 958, in re
nder
fis += r.render(node_story)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 858, in re
nder
return process_story(node_story)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 851, in pr
ocess_story
flow = self._flowable(node)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 774, in _f
lowable
return self._table(node)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 658, in _t
able
fl = self._flowable(n, extra_style=paraStyle)
File "C:\addons\web_printscreen_zb\trml2pdf.py", line 727, in _f
lowable
result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bul
letText':'str'}))))
File "reportlab\platypus\paragraph.py", line 988, in init

File "reportlab\platypus\paragraph.py", line 1010, in _setup

File "reportlab\platypus\paraparser.py", line 1147, in parse

File "reportlab\lib\utils.py", line 1337, in annotateException

File "reportlab\platypus\paraparser.py", line 1145, in parse

File "HTMLParser.py", line 114, in feed

File "HTMLParser.py", line 160, in goahead

File "HTMLParser.py", line 398, in parse_endtag

File "reportlab\platypus\paraparser.py", line 1181, in handle_endtag

File "reportlab\platypus\paraparser.py", line 834, in end_para

File "reportlab\platypus\paraparser.py", line 985, in _pop

IndexError: list index out of rangeparagraph text u'' caused
exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant