← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 727894] Re: [6.0] account - invoice report - crash if company logo is missing

 

if I delete the company logo I get

Error Popup
(<type 'exceptions.TypeError'>, TypeError(u'Argument must be string or unicode.',), <traceback object at 0x4f51560>)

log:

2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[01]: Exception: Argument must be string or unicode.
[2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[03]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/service/web_services.py", line 724, in go
[2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[05]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/addons/pxgo_openoffice_reports/openoffice_report.py", line 497, in create
[2011-03-02 20:06:37,529][chricar6] ERROR:web-services:[06]:     fnct_ret = self.old_create(cr, uid, ids, data, context=context)
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[07]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 428, in create
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[08]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[09]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 491, in create_source_pdf
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[10]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[11]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 513, in create_single_pdf
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[12]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[13]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/interface.py", line 193, in create_pdf
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[14]:     obj.render()
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[15]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/render.py", line 63, in render
[2011-03-02 20:06:37,530][chricar6] ERROR:web-services:[16]:     result = self._render()
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[17]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml.py", line 41, in _render
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[18]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[19]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[20]:     r.render(fp)
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[21]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[22]:     pt_obj.render(el)
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[23]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 951, in render
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[24]:     self.doc_tmpl.build(fis)
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[25]:   File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 774, in build
[2011-03-02 20:06:37,531][chricar6] ERROR:web-services:[26]:     self.clean_hanging()
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[27]:   File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 412, in clean_hanging
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[28]:     self.handle_flowable(self._hanging)
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[29]:   File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 659, in handle_flowable
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[30]:     f.apply(self)
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[31]:   File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 118, in apply
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[32]:     getattr(doc,arn)(*args)
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[33]:   File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 437, in handle_pageBegin
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[34]:     self.pageTemplate.onPage(self.canv,self)
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[35]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 579, in render
[2011-03-02 20:06:37,532][chricar6] ERROR:web-services:[36]:     cnv.render(self.node)
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[37]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 564, in render
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[38]:     tags[n.tag](n)
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[39]:   File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 454, in _image
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[40]:     node.text = newtext
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[41]:   File "lxml.etree.pyx", line 821, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:33308)
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[42]:   File "apihelpers.pxi", line 654, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:15333)
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[43]:   File "apihelpers.pxi", line 1293, in lxml.etree._utf8 (src/lxml/lxml.etree.c:20190)
[2011-03-02 20:06:37,533][chricar6] ERROR:web-services:[44]: TypeError: Argument must be string or unicode.
[2011-03-02 20:06:38,433][chricar6] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException

-- 
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/727894

Title:
  [6.0] account - invoice report - crash if company logo is missing

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  the logo is not mandatory - hence the reports should run also without logo
  just checked for invoice -didn't check SO/PO/PICK



References