openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #19887
[Bug 1083486] Re: [trunk] Stock Level Forecast encode char regression
** Branch linked: lp:~openerp-dev/openobject-addons/trunk-
bug-1083486-api
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1083486
Title:
[trunk] Stock Level Forecast encode char regression
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Please check below trace which I got when tried to print Stock Level
Forecast report from a product, which product name have our native
language chars.
rev: 8118
openerp.service.web_services: Exception: 'charmap' codec can't encode character u'\u0117' in position 5: character maps to <undefined>
Traceback (most recent call last):
File "/home/komsas/openerp/trunk/server/trunk/openerp/service/web_services.py", line 736, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/komsas/openerp/trunk/addons/trunk/stock/report/product_stock.py", line 110, in create
gt.draw()
File "/home/komsas/openerp/trunk/addons/trunk/stock/report/stock_graph.py", line 102, in draw
ar.draw(self._canvas)
File "/usr/lib/python2.7/site-packages/pychart/area.py", line 248, in draw
self.legend.draw(self, legends, can)
File "/usr/lib/python2.7/site-packages/pychart/legend.py", line 178, in draw
l.draw(ar, can, this_x, this_x + max_sample_width[col], this_y)
File "/usr/lib/python2.7/site-packages/pychart/legend.py", line 88, in draw
can.show(x_label, y, self.label)
File "/usr/lib/python2.7/site-packages/pychart/basecanvas.py", line 503, in show
self.text_show(font_name, nscale(size), color, str)
File "/usr/lib/python2.7/site-packages/pychart/pdfcanvas.py", line 171, in text_show
self.__write("(%s) Tj " % (str.encode('mac_roman')))
File "/usr/lib64/python2.7/encodings/mac_roman.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0117' in position 5: character maps to <undefined>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1083486/+subscriptions
References