c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16324
[Bug 719869] Re: [5.0] Report Fails with accented chars in header
Sorry this issue is fixed on trunk
--
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.
References