c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06793
[Bug 681801] Re: Accents in header of the company's structure
*** This bug is a duplicate of bug 537449 ***
https://bugs.launchpad.net/bugs/537449
** This bug has been marked a duplicate of bug 537449
Report Fails to handle accented chars
* You can subscribe to bug 537449 by following this link: https://bugs.launchpad.net/openobject-server/+bug/537449/+subscribe
--
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/681801
Title:
Accents in header of the company's structure
Status in OpenObject Server:
Invalid
Bug description:
I would like to change the term "Phone" into the french translation "Téléphone" in the header of the society.
My default language is "French".
I go to the view "utilisateurs->structure de la société->sociétés" and want to change the text in the folder "En-téte/Pied de page" in the view of one society.
'For English, the path to this view is "Users->Company's structure->Companies, the folder name is "Header/Footer").
If I replace Phone by "Telephone", it works fine.
If i replace Phone by "Téléphone" (note the accents, I have the following error :
[2010-11-17 17:35:29,643][vititest_6] ERROR:web-services:[01]:
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[02]: Environment Information :
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[03]: System : Linux-2.6.32-23-generic-i686-with-Ubuntu-10.04-lucid
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[04]: OS Name : posix
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[06]: Description: Ubuntu 10.04 LTS
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[07]: Release: 10.04
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[08]: Codename: lucid
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[09]: Operating System Release : 2.6.32-23-generic
[2010-11-17 17:35:29,644][vititest_6] ERROR:web-services:[10]: Operating System Version : #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[12]: Operating System Locale : fr_FR.UTF8
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[13]: Python Version : 2.6.5
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.15
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[15]: Last revision No. & ID :
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[16]: Exception: function takes exactly 5 arguments (1 given)
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[17]: Traceback (most recent call last):
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[18]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 683, in go
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[19]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-11-17 17:35:29,645][vititest_6] ERROR:web-services:[20]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 365, in create
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[21]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[22]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 427, in create_source_pdf
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[23]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[24]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 448, in create_single_pdf
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[25]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[26]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/interface.py", line 183, in create_pdf
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[27]: obj.render()
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[28]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/render.py", line 50, in render
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[29]: result = self._render()
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[30]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml.py", line 41, in _render
[2010-11-17 17:35:29,646][vititest_6] ERROR:web-services:[31]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[32]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 791, in parseNode
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[33]: r.render(fp)
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[34]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 205, in render
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[35]: pt_obj.render(el)
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[36]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 785, in render
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[37]: self.doc_tmpl.build(fis)
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[38]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[39]: self.clean_hanging()
[2010-11-17 17:35:29,647][vititest_6] ERROR:web-services:[40]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[41]: self.handle_flowable(self._hanging)
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[42]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[43]: f.apply(self)
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[44]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[45]: getattr(doc,arn)(*args)
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[46]: File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[47]: self.pageTemplate.onPage(self.canv,self)
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[48]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 448, in render
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[49]: cnv.render(self.node)
[2010-11-17 17:35:29,648][vititest_6] ERROR:web-services:[50]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 433, in render
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[51]: tags[n.tag](n)
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[52]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 249, in _drawString
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[53]: text=self._textual(node, **v)
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[54]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 230, in _textual
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[55]: rc = utils._process_text(self, text)
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[56]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/utils.py", line 112, in _process_text
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[57]: result += tools.ustr(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[58]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 292, in _translate
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[59]: piece_list[pn] = piece_list[pn].replace(source_string, translated_string)
[2010-11-17 17:35:29,649][vititest_6] ERROR:web-services:[60]: TypeError: function takes exactly 5 arguments (1 given)
References