← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724841] Re: Printing of "Burndown Chart" gives a Traceback.

 

** Branch linked: lp:~openerp-dev/openobject-addons/trunk-bug-724841-rme

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

Title:
  Printing of "Burndown Chart" gives a Traceback.

Status in OpenERP Modules (addons):
  Fix Committed

Bug description:
  Hello,

  when I print the "Burndown Chart" report from Project/Scrum/Sprints 's
  form view I faced the following traceback on server side.

  [2011-02-25 15:05:51,708][db_trunk] ERROR:web-services:[01]: 
  [2011-02-25 15:05:51,709][db_trunk] ERROR:web-services:[02]: Environment Information : 
  [2011-02-25 15:05:51,709][db_trunk] ERROR:web-services:[03]: System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
  [2011-02-25 15:05:51,709][db_trunk] ERROR:web-services:[04]: OS Name : posix
  [2011-02-25 15:05:51,709][db_trunk] ERROR:web-services:[05]: Distributor ID:	Ubuntu
  [2011-02-25 15:05:51,709][db_trunk] ERROR:web-services:[06]: Description:	Ubuntu 10.04 LTS
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[07]: Release:	10.04
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[08]: Codename:	lucid
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[09]: Operating System Release : 2.6.32-22-generic
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[10]: Operating System Version : #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[11]: Operating System Architecture : 32bit
  [2011-02-25 15:05:51,710][db_trunk] ERROR:web-services:[12]: Operating System Locale : en_IN.UTF8
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[13]: Python Version : 2.6.5
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[14]: OpenERP-Server Version : 6.1-dev
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[15]: Exception: float division
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[16]: Traceback (most recent call last):
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[17]:   File "/home/tiny/workspace/openobject-server/openerp/service/web_services.py", line 723, in go
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[18]:     (result, format) = obj.create(cr, uid, ids, datas, context)
  [2011-02-25 15:05:51,711][db_trunk] ERROR:web-services:[19]:   File "/home/tiny/workspace/openobject-addons/project_scrum/report/sprint_burndown.py", line 82, in create
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[20]:     ar.draw(canv)
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[21]:   File "/usr/lib/pymodules/python2.6/pychart/area.py", line 215, in draw
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[22]:     self.__draw_y_grid_and_axis(can)
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[23]:   File "/usr/lib/pymodules/python2.6/pychart/area.py", line 147, in __draw_y_grid_and_axis
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[24]:     y = self.y_pos(i)
  [2011-02-25 15:05:51,712][db_trunk] ERROR:web-services:[25]:   File "/usr/lib/pymodules/python2.6/pychart/area.py", line 118, in y_pos
  [2011-02-25 15:05:51,713][db_trunk] ERROR:web-services:[26]:     self.y_range[0], self.y_range[1])
  [2011-02-25 15:05:51,713][db_trunk] ERROR:web-services:[27]:   File "/usr/lib/pymodules/python2.6/pychart/linear_coord.py", line 20, in get_canvas_pos
  [2011-02-25 15:05:51,713][db_trunk] ERROR:web-services:[28]:     return size * (val - min) / float(max - min)
  [2011-02-25 15:05:51,713][db_trunk] ERROR:web-services:[29]: ZeroDivisionError: float division



References