c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22959
[Bug 772595] [NEW] [6.1 trunk] [account] : Cannot print invoices
Public bug reported:
hi there,
using the latest rev, when trying to print an invoice (sale invoice if
that matters) i get the following tb:
[2011-04-28 20:32:05,872][bs_02] ERROR:web-services:[01]:
[2011-04-28 20:32:05,872][bs_02] ERROR:web-services:[02]: Environment Information :
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[03]: System : Linux-2.6.35-28-generic-i686-with-Ubuntu-10.10-maverick
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[04]: OS Name : posix
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[06]: Description: Ubuntu 10.10
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[07]: Release: 10.10
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[08]: Codename: maverick
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[09]: Operating System Release : 2.6.35-28-generic
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[10]: Operating System Version : #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[12]: Operating System Locale : fr_CH.UTF8
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[13]: Python Version : 2.6.6
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[14]: OpenERP-Server Version : 6.1-dev
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[15]: Exception: list index out of range
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[16]: Traceback (most recent call last):
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[17]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 723, in go
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[18]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[19]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 428, in create
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[20]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[21]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 462, in create_source_pdf
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[22]: result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[23]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 513, in create_single_pdf
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[24]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[25]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/interface.py", line 193, in create_pdf
[2011-04-28 20:32:05,877][bs_02] ERROR:web-services:[26]: obj.render()
[2011-04-28 20:32:05,877][bs_02] ERROR:web-services:[27]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/render.py", line 63, in render
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[28]: result = self._render()
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[29]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml.py", line 41, in _render
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[30]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[31]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[32]: r.render(fp)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[33]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[34]: pt_obj.render(el)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[35]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 951, in render
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[36]: self.doc_tmpl.build(fis)
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[37]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 877, in build
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[38]: self.handle_flowable(flowables)
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[39]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 762, in handle_flowable
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[40]: if frame.add(f, canv, trySplit=self.allowSplitting):
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[41]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/frames.py", line 159, in _add
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[42]: w, h = flowable.wrap(aW, h)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[43]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 775, in wrap
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[44]: self.width, self.height = _listWrapOn(self._content,availWidth,self.canv)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[45]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 482, in _listWrapOn
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[46]: w,h = f.wrapOn(canv,availWidth,0xfffffff)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[47]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 117, in wrapOn
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[48]: w, h = self.wrap(aW,aH)
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[49]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 1081, in wrap
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[50]: self._calc(availWidth, availHeight)
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[51]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 583, in _calc
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[52]: self._calcSpanRects()
[2011-04-28 20:32:05,883][bs_02] ERROR:web-services:[53]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 903, in _calcSpanRects
[2011-04-28 20:32:05,883][bs_02] ERROR:web-services:[54]: vBlocks.setdefault(colpositions[_],[]).append((rowpositions[row1+1],rowpositions[row0]))
[2011-04-28 20:32:05,884][bs_02] ERROR:web-services:[55]: IndexError: list index out of range
the error message that comes is:
(<type 'exceptions.IndexError'>, IndexError('list index out of range',), <traceback object at 0xbe6caf4>) which btw, it is not very useful...
thank you!
bogdan
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/772595
Title:
[6.1 trunk] [account] : Cannot print invoices
Status in OpenERP Modules (addons):
New
Bug description:
hi there,
using the latest rev, when trying to print an invoice (sale invoice if
that matters) i get the following tb:
[2011-04-28 20:32:05,872][bs_02] ERROR:web-services:[01]:
[2011-04-28 20:32:05,872][bs_02] ERROR:web-services:[02]: Environment Information :
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[03]: System : Linux-2.6.35-28-generic-i686-with-Ubuntu-10.10-maverick
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[04]: OS Name : posix
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[06]: Description: Ubuntu 10.10
[2011-04-28 20:32:05,873][bs_02] ERROR:web-services:[07]: Release: 10.10
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[08]: Codename: maverick
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[09]: Operating System Release : 2.6.35-28-generic
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[10]: Operating System Version : #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[12]: Operating System Locale : fr_CH.UTF8
[2011-04-28 20:32:05,874][bs_02] ERROR:web-services:[13]: Python Version : 2.6.6
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[14]: OpenERP-Server Version : 6.1-dev
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[15]: Exception: list index out of range
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[16]: Traceback (most recent call last):
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[17]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 723, in go
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[18]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-04-28 20:32:05,875][bs_02] ERROR:web-services:[19]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 428, in create
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[20]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[21]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 462, in create_source_pdf
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[22]: result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[23]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/report_sxw.py", line 513, in create_single_pdf
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[24]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2011-04-28 20:32:05,876][bs_02] ERROR:web-services:[25]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/interface.py", line 193, in create_pdf
[2011-04-28 20:32:05,877][bs_02] ERROR:web-services:[26]: obj.render()
[2011-04-28 20:32:05,877][bs_02] ERROR:web-services:[27]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/render.py", line 63, in render
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[28]: result = self._render()
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[29]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml.py", line 41, in _render
[2011-04-28 20:32:05,878][bs_02] ERROR:web-services:[30]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[31]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[32]: r.render(fp)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[33]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[34]: pt_obj.render(el)
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[35]: File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 951, in render
[2011-04-28 20:32:05,879][bs_02] ERROR:web-services:[36]: self.doc_tmpl.build(fis)
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[37]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 877, in build
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[38]: self.handle_flowable(flowables)
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[39]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 762, in handle_flowable
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[40]: if frame.add(f, canv, trySplit=self.allowSplitting):
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[41]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/frames.py", line 159, in _add
[2011-04-28 20:32:05,880][bs_02] ERROR:web-services:[42]: w, h = flowable.wrap(aW, h)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[43]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 775, in wrap
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[44]: self.width, self.height = _listWrapOn(self._content,availWidth,self.canv)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[45]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 482, in _listWrapOn
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[46]: w,h = f.wrapOn(canv,availWidth,0xfffffff)
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[47]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/flowables.py", line 117, in wrapOn
[2011-04-28 20:32:05,881][bs_02] ERROR:web-services:[48]: w, h = self.wrap(aW,aH)
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[49]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 1081, in wrap
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[50]: self._calc(availWidth, availHeight)
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[51]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 583, in _calc
[2011-04-28 20:32:05,882][bs_02] ERROR:web-services:[52]: self._calcSpanRects()
[2011-04-28 20:32:05,883][bs_02] ERROR:web-services:[53]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/tables.py", line 903, in _calcSpanRects
[2011-04-28 20:32:05,883][bs_02] ERROR:web-services:[54]: vBlocks.setdefault(colpositions[_],[]).append((rowpositions[row1+1],rowpositions[row0]))
[2011-04-28 20:32:05,884][bs_02] ERROR:web-services:[55]: IndexError: list index out of range
the error message that comes is:
(<type 'exceptions.IndexError'>, IndexError('list index out of range',), <traceback object at 0xbe6caf4>) which btw, it is not very useful...
thank you!
bogdan
Follow ups
References