← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670219] Re: [TRUNK] Error "Argument must be string or unicode." in Employee Salary Statement

 

Hello,

This has been fixed in following branch:
https://code.launchpad.net/+branch/~openerp-report/openobject-addons/report-dev.
The committed changes of this branch will merge soon. 

Thanks

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Fix Released

-- 
[TRUNK] Error "Argument must be string or unicode." in Employee Salary Statement
https://bugs.launchpad.net/bugs/670219
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released

Bug description:
MEnu:

Human Resource >> reporting >> payroll >> Employee salary statement Wizard.

The error shows up as a win.

Traceback on server.

[2010-11-02 22:31:31,578][v6payroll] ERROR:web-services:[01]: Exception: Argument must be string or unicode.
[2010-11-02 22:31:31,578][v6payroll] ERROR:web-services:[02]:    handle_pageBegin args=()
[2010-11-02 22:31:31,579][v6payroll] ERROR:web-services:[03]: Traceback (most recent call last):
[2010-11-02 22:31:31,579][v6payroll] ERROR:web-services:[04]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/service/web_services.py", line 711, in go
[2010-11-02 22:31:31,579][v6payroll] ERROR:web-services:[05]:     (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-11-02 22:31:31,579][v6payroll] ERROR:web-services:[06]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 399, in create
[2010-11-02 22:31:31,579][v6payroll] ERROR:web-services:[07]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[08]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 462, in create_source_pdf
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[09]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[10]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 484, in create_single_pdf
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[11]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[12]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/interface.py", line 190, in create_pdf
[2010-11-02 22:31:31,580][v6payroll] ERROR:web-services:[13]:     obj.render()
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[14]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/render.py", line 49, in render
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[15]:     result = self._render()
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[16]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml.py", line 42, in _render
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[17]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[18]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
[2010-11-02 22:31:31,581][v6payroll] ERROR:web-services:[19]:     r.render(fp)
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[20]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[21]:     pt_obj.render(el)
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[22]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[23]:     self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[24]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
[2010-11-02 22:31:31,582][v6payroll] ERROR:web-services:[25]:     self.clean_hanging()
[2010-11-02 22:31:31,583][v6payroll] ERROR:web-services:[26]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
[2010-11-02 22:31:31,583][v6payroll] ERROR:web-services:[27]:     self.handle_flowable(self._hanging)
[2010-11-02 22:31:31,583][v6payroll] ERROR:web-services:[28]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
[2010-11-02 22:31:31,583][v6payroll] ERROR:web-services:[29]:     f.apply(self)
[2010-11-02 22:31:31,583][v6payroll] ERROR:web-services:[30]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
[2010-11-02 22:31:31,584][v6payroll] ERROR:web-services:[31]:     getattr(doc,arn)(*args)
[2010-11-02 22:31:31,584][v6payroll] ERROR:web-services:[32]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
[2010-11-02 22:31:31,584][v6payroll] ERROR:web-services:[33]:     self.pageTemplate.onPage(self.canv,self)
[2010-11-02 22:31:31,584][v6payroll] ERROR:web-services:[34]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
[2010-11-02 22:31:31,584][v6payroll] ERROR:web-services:[35]:     cnv.render(self.node)
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[36]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[37]:     tags[n.tag](n)
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[38]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 420, in _image
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[39]:     node.text = newtext
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[40]:   File "lxml.etree.pyx", line 821, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:32944)
[2010-11-02 22:31:31,585][v6payroll] ERROR:web-services:[41]:   File "apihelpers.pxi", line 653, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:15311)
[2010-11-02 22:31:31,586][v6payroll] ERROR:web-services:[42]:   File "apihelpers.pxi", line 1240, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19826)
[2010-11-02 22:31:31,586][v6payroll] ERROR:web-services:[43]: TypeError: Argument must be string or unicode.
[2010-11-02 22:31:31,586][v6payroll] ERROR:web-services:[44]:    handle_pageBegin args=()
[2010-11-02 22:32:19,162][v6payroll] ERROR:web-services:[01]: Exception: Argument must be string or unicode.
[2010-11-02 22:32:19,162][v6payroll] ERROR:web-services:[02]:    handle_pageBegin args=()
[2010-11-02 22:32:19,162][v6payroll] ERROR:web-services:[03]: Traceback (most recent call last):
[2010-11-02 22:32:19,162][v6payroll] ERROR:web-services:[04]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/service/web_services.py", line 711, in go
[2010-11-02 22:32:19,163][v6payroll] ERROR:web-services:[05]:     (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-11-02 22:32:19,163][v6payroll] ERROR:web-services:[06]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 399, in create
[2010-11-02 22:32:19,163][v6payroll] ERROR:web-services:[07]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-11-02 22:32:19,163][v6payroll] ERROR:web-services:[08]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 462, in create_source_pdf
[2010-11-02 22:32:19,163][v6payroll] ERROR:web-services:[09]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[10]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/report_sxw.py", line 484, in create_single_pdf
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[11]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[12]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/interface.py", line 190, in create_pdf
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[13]:     obj.render()
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[14]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/render.py", line 49, in render
[2010-11-02 22:32:19,164][v6payroll] ERROR:web-services:[15]:     result = self._render()
[2010-11-02 22:32:19,165][v6payroll] ERROR:web-services:[16]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml.py", line 42, in _render
[2010-11-02 22:32:19,165][v6payroll] ERROR:web-services:[17]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2010-11-02 22:32:19,165][v6payroll] ERROR:web-services:[18]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
[2010-11-02 22:32:19,165][v6payroll] ERROR:web-services:[19]:     r.render(fp)
[2010-11-02 22:32:19,165][v6payroll] ERROR:web-services:[20]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[21]:     pt_obj.render(el)
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[22]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[23]:     self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[24]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[25]:     self.clean_hanging()
[2010-11-02 22:32:19,166][v6payroll] ERROR:web-services:[26]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[27]:     self.handle_flowable(self._hanging)
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[28]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[29]:     f.apply(self)
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[30]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[31]:     getattr(doc,arn)(*args)
[2010-11-02 22:32:19,167][v6payroll] ERROR:web-services:[32]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[33]:     self.pageTemplate.onPage(self.canv,self)
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[34]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[35]:     cnv.render(self.node)
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[36]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[37]:     tags[n.tag](n)
[2010-11-02 22:32:19,168][v6payroll] ERROR:web-services:[38]:   File "/media/f01107cb-4ced-414a-8622-7678e0768c6f/nhomar/proyectos_bazaar/server-versions/server-trunk/bin/report/render/rml2pdf/trml2pdf.py", line 420, in _image
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[39]:     node.text = newtext
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[40]:   File "lxml.etree.pyx", line 821, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:32944)
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[41]:   File "apihelpers.pxi", line 653, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:15311)
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[42]:   File "apihelpers.pxi", line 1240, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19826)
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[43]: TypeError: Argument must be string or unicode.
[2010-11-02 22:32:19,169][v6payroll] ERROR:web-services:[44]:    handle_pageBegin args=()





References