c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26225
[Bug 513746] Re: Error in report_sale module
Hi all,
This is really a bug.
It happens when there are at least 2 sale orders with 2 different years
of date_order. And it doesn't appear when all sale orders having the
same year of date_order.
I have attached the patch for this bug. Please download and test it!
Thanks!
** Attachment added: "patch_513746.txt"
https://bugs.launchpad.net/openobject-server/+bug/513746/+attachment/2165600/+files/patch_513746.txt
--
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/513746
Title:
Error in report_sale module
Status in OpenERP Server:
Invalid
Status in Ubuntu:
Invalid
Bug description:
Hello,
Currently i am getting error in sale order module in one of our client
machine. When i am clicking on 'Monthly Sales Turnover Over One Year',
'Daily Sales Turnover Over One Year', 'Monthly Cumulated Sales
Turnover Over One Year' at that time i am getting below error and i
cant see the reports. So what is the problem?
Environment Information :
System : Linux-2.6.28-17-generic-i686-with-Ubuntu-9.04-jaunty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
Operating System Release : 2.6.28-17-generic
Operating System Version : #58-Ubuntu SMP Tue Dec 1 18:57:07 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.2
OpenERP-Client Version : 5.0.7
Last revision No. & ID :1031 odo@xxxxxxxxxxx-20091223162627-xqh6v2p35qk5l9ud
Traceback (most recent call last):
File "/home/deven/workspace/server/bin/service/web_services.py", line 687, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/deven/workspace/server/bin/report/custom.py", line 280, in create
res = self._create_bars(cr,uid, ids, report, fields, results2, context)
File "/home/deven/workspace/server/bin/report/custom.py", line 559, in _create_bars
ar.draw(can)
File "/home/deven/workspace/server/bin/pychart/area.py", line 222, in draw
plot.draw(self, can)
File "/home/deven/workspace/server/bin/pychart/bar_plot.py", line 256, in draw
self.draw_vertical(ar, can)
File "/home/deven/workspace/server/bin/pychart/bar_plot.py", line 191, in draw_vertical
totalWidth = self.get_bar_width(ar, self.cluster[1])
File "/home/deven/workspace/server/bin/pychart/bar_plot.py", line 175, in get_bar_width
plot = find_bar_plot(ar, i)
File "/home/deven/workspace/server/bin/pychart/bar_plot.py", line 127, in find_bar_plot
raise Exception, "The %dth bar plot in the cluster not found." % nth
Exception: The 1th bar plot in the cluster not found.
Please help me to solve this error ASAP.
Waiting for the reply.
Deven
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/513746/+subscriptions