← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 562595] Re: Regression - Printing stock forecast for more than one product

 

unable to reproduce

** Changed in: openobject-addons
       Status: Confirmed => Invalid

-- 
Regression - Printing stock forecast for more than one product
https://bugs.launchpad.net/bugs/562595
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Invalid

Bug description:
Looks like a regression from 5.0.7 to 5.0.9
If you select more than one product on the product list and try to print the 'Stock forecast' report

Environment Information : 
System : Windows-32bit-SP2
OS Name : nt
Operating System Release : 
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : fr_CH.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.9
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 682, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/stock/report/product_stock.py", line 114, in create
    gt.draw()
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/stock/report/stock_graph.py", line 99, in draw
    ar.draw(self._canvas)
  File "/var/lib/python-support/python2.5/pychart/area.py", line 248, in draw
    self.legend.draw(self, legends, can)
  File "/var/lib/python-support/python2.5/pychart/legend.py", line 144, in draw
    max_label_width[col] = max(l.label_width(), max_label_width[col])
  File "/var/lib/python-support/python2.5/pychart/legend.py", line 44, in label_width
    return font.text_width(" " + self.label)
  File "/var/lib/python-support/python2.5/pychart/font.py", line 443, in text_width
    (xmin, xmax, d1, d2) = get_dimension(text)
  File "/var/lib/python-support/python2.5/pychart/font.py", line 411, in get_dimension
    (xmax, ymax, halign, valign, angle) = unaligned_get_dimension(text)
  File "/var/lib/python-support/python2.5/pychart/font.py", line 374, in unaligned_get_dimension
    for line in unicode(text).split('\n'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)