[FIX] Custom report : sorted X-axis values

lp bug: https://launchpad.net/bugs/390167 fixed

bzr revid: jvo@tinyerp.com-20090626143947-ej0m0jh7jn2fambz
This commit is contained in:
YSA(Open ERP) 2009-06-26 20:09:47 +05:30 committed by Jay (Open ERP)
parent e6f4c4fb2b
commit 6be08e1808
1 changed files with 1 additions and 0 deletions

View File

@ -554,6 +554,7 @@ class report_custom(report_int):
abscissa.update(fields_bar[idx])
idx0 += 1
abscissa = map(lambda x : [x, None], abscissa)
abscissa.sort()
ar.x_coord = category_coord.T(abscissa,0)
ar.draw(can)