Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

list index out of rangeparagraph text u'<para></font></para>' caused exception ?

By
heru
on 2/3/15, 9:18 PM 692 views

hai, i will print report 'pjp' , but when i click button print, report pjp can't print .

and the message error like :

2015-02-04 02:00:06,293 4935 ERROR Century-DB openerp.service.web_services: Exception: list index out of rangeparagraph text u'<para></font></para>' caused exception
Traceback (most recent call last):
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/service/web_services.py", line 718, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/report_sxw.py", line 449, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/report_sxw.py", line 518, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/report_sxw.py", line 540, in create_single_pdf
    pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/interface.py", line 206, in create_pdf
    obj.render()
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/render.py", line 59, in render
    self._result = self._render()
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml.py", line 41, in _render
    return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 1040, in parseNode
    r.render(fp)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 329, in render
    pt_obj.render(el)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 1011, in render
    fis += r.render(node_story)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 902, in render
    return process_story(node_story)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 895, in process_story
    flow = self._flowable(node)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 818, in _flowable
    return  self._table(node)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 702, in _table
    fl = self._flowable(n, extra_style=paraStyle)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/report/render/rml2pdf/trml2pdf.py", line 771, in _flowable
    result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 988, in __init__
    self._setup(text, style, bulletText or getattr(style,'bulletText',None), frags, cleanBlockQuotedText)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1010, in _setup
    style, frags, bulletTextFrags = _parser.parse(text,style)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1147, in parse
    annotateException('paragraph text %s caused exception' % ascii(text))
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1337, in annotateException
    rl_reraise(t,v,b)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1145, in parse
    self.feed(text)
  File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
    self.goahead(0)
  File "/usr/lib/python2.7/HTMLParser.py", line 163, in goahead
    k = self.parse_endtag(i)
  File "/usr/lib/python2.7/HTMLParser.py", line 401, in parse_endtag
    self.handle_endtag(elem)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1181, in handle_endtag
    end()
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 834, in end_para
    self._pop()
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 985, in _pop
    frag = self._stack[-1]
IndexError: list index out of rangeparagraph text u'<para></font></para>' caused exception
2015-02-04 02:00:06,509 4935 ERROR Century-DB openerp.netsvc: list index out of rangeparagraph text u'<para></font></para>' caused exception
(<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception",), <traceback object at 0xb21d6a54>)
Traceback (most recent call last):
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/service/web_services.py", line 660, in dispatch
    res = fn(db, uid, *params)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/service/web_services.py", line 766, in exp_report_get
    return self._check_report(report_id)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/openerp/service/web_services.py", line 744, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/home/heru/odoo/openerp-7.0/openerp-7.0-20150118/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", (<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception",), <traceback object at 0xb21d6a54>))

is anyone have solution How i fix my problems ?

 

thanks in advance .

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/3/15, 9:18 PM
Seen: 692 times
Last updated: 3/16/15, 8:10 AM