[IMP]Remove id from label(if x-axis value is in list.)
bzr revid: kch@tinyerp.com-20110411062756-x9i1lh4yb4cdlrwr
This commit is contained in:
@@ -63,6 +63,10 @@ class GraphView(openerpweb.Controller):
|
||||
|
||||
result = []
|
||||
for i, evt in enumerate(self.events):
|
||||
key = evt[self.fields.values()[1]]
|
||||
if isinstance(key, list):
|
||||
evt[self.fields.values()[1]] = key = key[-1]
|
||||
|
||||
self.events[i].pop('id')
|
||||
result.append(evt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user