[FIX] forces an update when the user switches back to the graph view, to make sure the data displayed are up to date (graph view, addon web_graph)

bzr revid: ged@openerp.com-20131226123449-qjm7hvkhfsdvi7pw
This commit is contained in:
Gery Debongnie 2013-12-26 13:34:49 +01:00
parent d145c7a8c4
commit 5a2ddfdf80
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
if (!this.graph_widget.enabled) {
this.graph_widget.activate_display();
this.ViewManager.on('switch_mode', this, function () {this.graph_widget.pivot.update_data(); });
}
},