Regression: Reports fail with accented characters in the company header

Bug #662598 reported by Dukai Gábor on 2010-10-18
This bug report is a duplicate of:  Bug #537449: Report Fails to handle accented chars. Edit Remove
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Status tracked in Trunk
Jay Vora (Serpent Consulting Services)

Bug Description

5.0 latest bzr.
Reports can't be created if the company's header has accented characters in it. Try with a picking, for example.
This regression happened somewhere between rev 2116 and 2143.

Related branches

Dukai Gábor (gdukai) wrote :

Traceback (most recent call last):
  File "bin/service/", line 683, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "bin/report/", line 365, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "bin/report/", line 427, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "bin/report/", line 448, in create_single_pdf
    pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  File "bin/report/", line 183, in create_pdf
  File "bin/report/render/", line 50, in render
    result = self._render()
  File "bin/report/render/", line 41, in _render
    return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
  File "bin/report/render/rml2pdf/", line 791, in parseNode
  File "bin/report/render/rml2pdf/", line 205, in render
  File "report/render/rml2pdf/", line 785, in render
  File "/usr/local/lib/python2.6/dist-packages/reportlab-2.4-py2.6-linux-x86_64.egg/reportlab/platypus/", line 874, in build
  File "/usr/local/lib/python2.6/dist-packages/reportlab-2.4-py2.6-linux-x86_64.egg/reportlab/platypus/", line 509, in clean_hanging
  File "/usr/local/lib/python2.6/dist-packages/reportlab-2.4-py2.6-linux-x86_64.egg/reportlab/platypus/", line 756, in handle_flowable
  File "/usr/local/lib/python2.6/dist-packages/reportlab-2.4-py2.6-linux-x86_64.egg/reportlab/platypus/", line 140, in apply
  File "/usr/local/lib/python2.6/dist-packages/reportlab-2.4-py2.6-linux-x86_64.egg/reportlab/platypus/", line 534, in handle_pageBegin
  File "bin/report/render/rml2pdf/", line 448, in render
  File "bin/report/render/rml2pdf/", line 433, in render
  File "bin/report/render/rml2pdf/", line 249, in _drawString
    text=self._textual(node, **v)
  File "bin/report/render/rml2pdf/", line 230, in _textual
    rc = utils._process_text(self, text)
  File "bin/report/render/rml2pdf/", line 112, in _process_text
    result += tools.ustr(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
  File "bin/report/", line 292, in _translate
    piece_list[pn] = piece_list[pn].replace(source_string, translated_string)
TypeError: function takes exactly 5 arguments (1 given)

Changed in openobject-server:
assignee: nobody → Jay (OpenERP) (jvo-openerp)
Changed in openobject-server:
status: New → Confirmed


Can you check with this patch?

Dukai Gábor (gdukai) wrote :

It works, thank you!

summary: Regression: Reports fail with accented characters in the company header
- (5.0)

Here is the patch for trunk.

works well, thanks.
btw, jj ff is funny :D

OpenBMS JSC (openbmsjsc) wrote : doesn't merge cleanly to lp:~openerp/openobject-server/trunk/ (revno 3051). Please revise if this patch is still working, if not please remove it to avoid confusion and time wasting to do all the patching that doens't work.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers