← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 719869] [NEW] [5.0] Report Fails with accented chars in header

 

Public bug reported:

In my company header, I have replaced 'Phone' by 'Téléphone' for French translation :
<drawString x="1.3cm" y="26.0cm">Téléphone:</drawString

But, when I try to print a quotations/order, the server crashes with this error : 
[2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[56]:   File "/home/quentin/Developpement/OpenERP_official/openerp-server-5.0.15/bin/report/render/rml2pdf/utils.py", line 112, in _process_text
[2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[57]:     result += tools.ustr(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
[2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[58]:   File "/home/quentin/Developpement/OpenERP_official/openerp-server-5.0.15/bin/report/report_sxw.py", line 293, in _translate
[2011-02-16 09:28:13,062][Gobelec] ERROR:web-services:[59]:     piece_list[pn] = piece_list[pn].replace(source_string, translated_string)
[2011-02-16 09:28:13,062][Gobelec] ERROR:web-services:[60]: TypeError: function takes exactly 5 arguments (1 given)


I tried to replace 'Téléphone' by 'Telephone' and everything is ok.

** Affects: openobject-server
     Importance: Undecided
         Status: Fix Released

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

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

Title:
  [5.0] Report Fails with accented chars in header

Status in OpenERP Server:
  Fix Released

Bug description:
  In my company header, I have replaced 'Phone' by 'Téléphone' for French translation :
  <drawString x="1.3cm" y="26.0cm">Téléphone:</drawString

  But, when I try to print a quotations/order, the server crashes with this error : 
  [2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[56]:   File "/home/quentin/Developpement/OpenERP_official/openerp-server-5.0.15/bin/report/render/rml2pdf/utils.py", line 112, in _process_text
  [2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[57]:     result += tools.ustr(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
  [2011-02-16 09:28:13,061][Gobelec] ERROR:web-services:[58]:   File "/home/quentin/Developpement/OpenERP_official/openerp-server-5.0.15/bin/report/report_sxw.py", line 293, in _translate
  [2011-02-16 09:28:13,062][Gobelec] ERROR:web-services:[59]:     piece_list[pn] = piece_list[pn].replace(source_string, translated_string)
  [2011-02-16 09:28:13,062][Gobelec] ERROR:web-services:[60]: TypeError: function takes exactly 5 arguments (1 given)

  
  I tried to replace 'Téléphone' by 'Telephone' and everything is ok.





Follow ups

References