summaryrefslogtreecommitdiff
path: root/addons/base_graph/controllers
diff options
context:
space:
mode:
authorKunal Chavda (OpenERP) <kch@tinyerp.com>2011-04-08 18:58:24 +0530
committerKunal Chavda (OpenERP) <kch@tinyerp.com>2011-04-08 18:58:24 +0530
commit6cd59e4cfdb8aba6d5a9e1cb7cc3dc799382a740 (patch)
treedd52fa8e38a950bab562ce0478c2cfea5758bbaa /addons/base_graph/controllers
parent20c75c45d8888e44b9b58b8ba67c6b5b2e8e7876 (diff)
[IMP]Improvement in show bar chart with data.
bzr revid: kch@tinyerp.com-20110408132824-vi85a34pg4in9ndw
Diffstat (limited to 'addons/base_graph/controllers')
-rw-r--r--addons/base_graph/controllers/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/base_graph/controllers/main.py b/addons/base_graph/controllers/main.py
index 275da8a1f23..288a7b17eab 100644
--- a/addons/base_graph/controllers/main.py
+++ b/addons/base_graph/controllers/main.py
@@ -61,5 +61,10 @@ class GraphView(openerpweb.Controller):
def create_event(self, event_ids, model):
self.events = model.read(event_ids, self.fields.values())
- return {'result': self.events}
+ result = []
+ for i, evt in enumerate(self.events):
+ self.events[i].pop('id')
+ result.append(evt)
+
+ return result